当前位置:   article > 正文

org.apache.flink.table.api.ValidationException

org.apache.flink.table.api.validationexception

在使用flinkTableAPI开发的时候,执行SQL,使用insert overwrite时,提示DynamicTableSink of table 'default_catalog.default_database.xx' implements the SupportsOverwrite interface.

这时我们需要在pom.xml文件中添加如下依赖,就可以解决:

<dependency>
    <groupId>org.apache.flink</groupId>
    <artifactId>flink-connector-jdbc_2.11</artifactId>
    <version>1.13.2</version>
</dependency>

  1. org.apache.flink.table.api.ValidationException: INSERT OVERWRITE requires that the underlying DynamicTableSink of table 'default_catalog.default_database.xx' implements the SupportsOverwrite interface.
  2. at org.apache.flink.table.planner.connectors.DynamicSinkUtils.validateAndApplyOverwrite(DynamicSinkUtils.java:494)
  3. at org.apache.flink.table.planner.connectors.DynamicSinkUtils.prepareDynamicSink(DynamicSinkUtils.java:376)
  4. at org.apache.flink.table.planner.connectors.DynamicSinkUtils.convertSinkToRel(DynamicSinkUtils.java:191)
  5. at org.apache.flink.table.planner.connectors.DynamicSinkUtils.convertSinkToRel(DynamicSinkUtils.java:163)
  6. at org.apache.flink.table.planner.delegation.PlannerBase$$anonfun$2.apply(PlannerBase.scala:229)
  7. at org.apache.flink.table.planner.delegation.PlannerBase$$anonfun$2.apply(PlannerBase.scala:201)
  8. at scala.Option.map(Option.scala:146)
  9. at org.apache.flink.table.planner.delegation.PlannerBase.translateToRel(PlannerBase.scala:201)
  10. at org.apache.flink.table.planner.delegation.PlannerBase$$anonfun$1.apply(PlannerBase.scala:162)
  11. at org.apache.flink.table.planner.delegation.PlannerBase$$anonfun$1.apply(PlannerBase.scala:162)
  12. at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
  13. at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
  14. at scala.collection.Iterator$class.foreach(Iterator.scala:891)
  15. at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
  16. at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
  17. at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
  18. at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
  19. at scala.collection.AbstractTraversable.map(Traversable.scala:104)
  20. at org.apache.flink.table.planner.delegation.PlannerBase.translate(PlannerBase.scala:162)
  21. at org.apache.flink.table.api.internal.TableEnvironmentImpl.translate(TableEnvironmentImpl.java:1518)
  22. at org.apache.flink.table.api.internal.TableEnvironmentImpl.executeInternal(TableEnvironmentImpl.java:740)
  23. at org.apache.flink.table.api.internal.TableEnvironmentImpl.executeInternal(TableEnvironmentImpl.java:856)
  24. at org.apache.flink.table.api.internal.TableEnvironmentImpl.executeSql(TableEnvironmentImpl.java:730)

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/424267
推荐阅读
相关标签
  

闽ICP备14008679号