Re: Table Print SQL Connector

2020-10-30 Thread Dawid Wysakowicz
Hi, The problem in your case is that you exit before anything is printed out. The method executeInsert executes the query, but it does not wait for the query to finish. Therefore your main/test method returns, bringing down the local cluster, before anything is printed out. You can e.g. add      

Re: Table Print SQL Connector

2020-10-29 Thread Ruben Laguna
Hi, Using `mytable.execute().print()` is exactly what I wanted, thanks. But I'm still curious. I'm just running this locally, in a junit test case (not using a flink cluster) just like in [flink-playgrounds SpendReportTest][1] so in this scenario where does the task manager (if there is taskmanag

Re: Table Print SQL Connector

2020-10-29 Thread Dawid Wysakowicz
You should be able to use the "print" sink. Remember though that the "print" sink prints into the stdout/stderr of TaskManagers, not the Client, where you submit the query. This is different from the TableResult, which collects results in the client. BTW, for printing you can use TableResult#print,