Re: Re: Is it possible to save Table to CSV?

2022-07-11 Thread podunk
No. But I do not want any 'parquet'. I need CSV.   Which code should created file?      EnvironmentSettings settings = EnvironmentSettings            .newInstance()            //.inStreamingMode()            .inBatchMode()            .build();         final

Re: Is it possible to save Table to CSV?

2022-07-11 Thread podunk
This example?:   CREATE TABLE kafka_table ( user_id STRING, order_amount DOUBLE, log_ts TIMESTAMP(3), WATERMARK FOR log_ts AS log_ts - INTERVAL '5' SECOND ) WITH (...); CREATE TABLE fs_table ( user_id STRING, order_amount DOUBLE, dt STRING, `hour` STRING ) PARTITIONED BY (dt,

Re: Is it possible to save Table to CSV?

2022-07-11 Thread Lijie Wang
You can use the FileSink and set the format to csv. An example of FileSink: https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/table/filesystem/#full-example Best, Lijie 于2022年7月11日周一 16:16写道: > > If I create dynamic table with: > > > CREATE TABLE some_table (name STRING,