开发者社区> 问答> 正文

NoSuchMethodError: org.apache.calcite.tools.Frame

Hi all,when I use blink flink-sql-parser module,the maven dependency like this:

com.alibaba.blink flink-sql-parser 1.5.1

I also import the flink 1.9 blink-table-planner module , I use FlinkPlannerImpl to parse the sql to get the List . But when I run the program , it throws the exception like this:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.calcite.tools.FrameworkConfig.getTraitDefs()Lorg/apache/flink/shaded/calcite/com/google/common/collect/ImmutableList; at org.apache.flink.sql.parser.plan.FlinkPlannerImpl. (FlinkPlannerImpl.java:93) at com.youzan.bigdata.allsqldemo.utils.FlinkSqlUtil.getSqlNodeInfos(FlinkSqlUtil.java:33) at com.youzan.bigdata.allsqldemo.KafkaSrcKafkaSinkSqlDemo.main(KafkaSrcKafkaSinkSqlDemo.java:56)

  • How can I solve this problem? Thanks to your reply.**来自志愿者整理的flink邮件归档

展开
收起
雪哥哥 2021-12-07 16:00:25 1267 0
1 条回答
写回答
取消 提交回答
  • Thanks for trying out blink planner. First question, are you using blink-1.5.1 or flink-1.9-table-planner-blink ? We suggest to use the latter one because we don't maintain blink-1.5.1, you can try flink 1.9 instead.*来自志愿者整理的flink

    2021-12-07 16:39:42
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像