You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Apache Calcite执行增删改语句失败,请求排查

Apache Calcite执行Insert/Update/Delete语句失败排查求助

问题详情

使用Apache Calcite执行Insert、Update、Delete语句均失败,以下是执行DELETE语句的完整信息:

输入查询

DELETE FROM  customer

日志信息

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

解析后的查询

DELETE FROM `CUSTOMER`

逻辑计划

LogicalTableModify(table=[[CUSTOMER]], operation=[DELETE], flattened=[false]), id = 5
  LogicalProject(c_custkey=[$0], c_name=[$1], c_address=[$2], c_nationkey=[$3], c_phone=[$4], c_acctbal=[$5], c_mktsegment=[$6], c_comment=[$7]), id = 4
    LogicalTableScan(table=[[CUSTOMER]]), id = 1

物理计划

EnumerableTableModify(table=[[CUSTOMER]], operation=[DELETE], flattened=[false]), id = 20
  EnumerableCalc(expr#0..7=[{inputs}], proj#0..7=[{exprs}]), id = 19
    EnumerableTableScan(table=[[CUSTOMER]]), id = 13

异常信息

Exception in thread "main" java.lang.NullPointerException
    at Baz.bind(Unknown Source)
    at com.github.zabetak.calcite.tutorial.LuceneQueryProcessor.execute(LuceneQueryProcessor.java:243)
    at com.github.zabetak.calcite.tutorial.LuceneQueryProcessor.main(LuceneQueryProcessor.java:115)

诉求

希望能解决问题,正常执行Insert、Delete、Update语句,请求帮忙排查原因。

内容的提问来源于stack exchange,提问作者giaogiao niu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 12:35:16