Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/1237#discussion_r45600975
--- Diff:
flink-staging/flink-table/src/main/scala/org/apache/flink/api/java/table/JavaStreamingTranslator.scala
---
@@ -113,8 +131,14 @@ class JavaStreamingTranslator extends PlanTranslator {
private def translateInternal(op: PlanNode): DataStream[Row] = {
op match {
- case Root(dataSet: DataStream[Row], resultFields) =>
- dataSet
+ case Root(dataStream: DataStream[Row], resultFields) =>
+ dataStream
+
+ case Root(tableSource: AdaptiveTableSource, resultFields) =>
+ if (env.isEmpty) {
+ throw new ExpressionException("This operation requires a
TableEnvironment.")
+ }
+ tableSource.createAdaptiveDataStream(env.get)
--- End diff --
`env` extraction
---
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.
---