Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/1237#discussion_r45600858
--- Diff:
flink-staging/flink-table/src/main/scala/org/apache/flink/api/java/table/JavaStreamingTranslator.scala
---
@@ -53,6 +55,22 @@ class JavaStreamingTranslator extends PlanTranslator {
new Table(Root(rowDataStream, resultFields))
}
+ override def createTable(tableSource: TableSource): Table = {
+ // a TableSource requires an StreamExecutionEnvironment
+ if (env.isEmpty) {
+ throw new ExpressionException("This operation requires a
StreamExecutionEnvironment.")
+ }
+ tableSource match {
+ case adaptive: AdaptiveTableSource => Table(Root(adaptive,
adaptive.getOutputFields()))
+
+ case static: StaticTableSource =>
+ createTable(static.createStaticDataStream(env.get),
--- End diff --
here as well
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---