-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-4180] [FLINK-4181] [table] add Batch SQL and Stream SQL and Stream Table API examples #2274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ream Table API examples
|
||
public static class WC { | ||
public String word; | ||
public long frequence; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
knitpick: change that to 'frequency' :)
@smarthi Thanks for reviewing. I have addressed the typo. |
} | ||
|
||
public static void main(String[] args) throws Exception { | ||
ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would suggest to the same comment as in WordCountSQL.scala:
// set up execution environment
LGTM after the nits. But I would request someone else have a pass over it before moving forward since I am new to the code. |
Thanks @wuchong. I will add some additional comments/formatting and merge it... |
…ream Table API examples This closes apache#2274.
…ream Table API examples This closes apache#2274.
…ream Table API examples This closes apache#2274.
[FLINK-4180] [FLINK-4181] [table] add Batch SQL and Stream SQL and Stream Table API examples
I add 4 examples for flink-table module
org.apache.flink.examples.java.JavaSQLExample
: Batch SQL in Javaorg.apache.flink.examples.scala.WordCountSQL
: Batch SQL in Scalaorg.apache.flink.examples.scala.StreamSQLExample
: Stream SQL in Scalaorg.apache.flink.examples.scala.StreamTableExample
: Stream Table API in Scala