hequn8128 commented on a change in pull request #6790: [FLINK-10487] fix 
invalid Flink SQL example and add runnable SQL example for Java API
URL: https://github.com/apache/flink/pull/6790#discussion_r222518009
 
 

 ##########
 File path: 
flink-examples/flink-examples-table/src/main/scala/org/apache/flink/table/examples/scala/StreamSQLExample.scala
 ##########
 @@ -54,12 +54,12 @@ object StreamSQLExample {
       Order(4L, "beer", 1)))
 
     // register the DataStreams under the name "OrderA" and "OrderB"
-    tEnv.registerDataStream("OrderA", orderA, 'user, 'product, 'amount)
+    var tableA = tEnv.fromDataStream(orderA, 'user, 'product, 'amount)
 
 Review comment:
   Adapt the comments. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to