You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/07/10 03:05:08 UTC
[GitHub] [flink] hehuiyuan opened a new pull request #9054:
[FLINK-13183][Table]Add a PrintTableSink
hehuiyuan opened a new pull request #9054: [FLINK-13183][Table]Add a PrintTableSink
URL: https://github.com/apache/flink/pull/9054
## What is the purpose of the change
This is very convenient for local mode and it is convenient for learning the Table & SQL Api
## Brief change log
Add a PrintTableSink class.
## Use method
```scala
PrintTableSink printsink = new PrintTableSink();
tableEnvironment.registerTableSink("printsinktable",printsink.configure(new String[]{"name"},new TypeInformation[]{Types.STRING} ));
tableEnvironment.sqlUpdate("INSERT INTO printsinktable SELECT name from table_name" );
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services