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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to