Hi Matyas,

AFAIK, currently, this is the recommended way to print result of table.
In FLIP-84 [1] , which is targeted to 1.11, we will introduce some new APIs
to do the fluent printing like this.

Table table2 = tEnv.sqlQuery("select yy ...");
TableResult result2 = table2.execute();
result2.print();

cc @Godfrey, please correct if I misunderstand the above API.

Best,
Jark

[1]:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=134745878

On Tue, 5 May 2020 at 20:19, Őrhidi Mátyás <matyas.orh...@gmail.com> wrote:

> Dear Flink Community,
>
> I'm missing Spark's table.show() method in Flink. I'm using the following
> alternative at the moment:
>
> Table results = tableEnv.sqlQuery("SELECT * FROM my_table");
> tableEnv.toAppendStream(results, Row.class).print();
>
> Is it the recommended way to print the content of a table?
>
>
> Thanks,
>
> Matyas
>
>
>
>

Reply via email to