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/09 14:00:35 UTC

[GitHub] [flink] hehuiyuan opened a new pull request #9046: [Table]Add a PrintTableSink

hehuiyuan opened a new pull request #9046: [Table]Add a PrintTableSink 
URL: https://github.com/apache/flink/pull/9046
 
 
   ## 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