Hi Flavio,

For print:
- As Kurt said, you can use `table.execute().print();`, records will be
collected to the client (NOTE it is client) and print to client console.
- But if you want print records in runtime tasks like DataStream.print, you
can use [1]

[1]
https://ci.apache.org/projects/flink/flink-docs-master/dev/table/connectors/print.html

Best,
Jingsong

On Thu, Jul 16, 2020 at 10:18 AM Kurt Young <ykt...@gmail.com> wrote:

> Hi Flavio,
>
> In 1.11 we have provided an easier way to print table content, after you
> got the `table` object,
> all you need to to is calling `table.execute().print();`
>
> Best,
> Kurt
>
>
> On Thu, Jul 16, 2020 at 9:35 AM Leonard Xu <xbjt...@gmail.com> wrote:
>
>> Hi, Flavio
>>
>>
>> 在 2020年7月16日,00:19,Flavio Pompermaier <pomperma...@okkam.it> 写道:
>>
>> final JobExecutionResult jobRes = tableEnv.execute("test-job");
>>
>>
>> In Flink 1.11, once a Table has transformed to DataStream, only
>> StreamExecutionEnvironment can execute the DataStream program, please use
>> env.execute(“test-job”) in this case, you can get mote information from [1].
>>
>>
>> Best,
>> Leonard Xu
>> [1]
>> https://ci.apache.org/projects/flink/flink-docs-release-1.11/dev/table/common.html#convert-a-table-into-a-datastream-or-dataset
>>
>>

-- 
Best, Jingsong Lee

Reply via email to