Ari Huttunen
04/06/2023, 7:47 AMOutputFileConfig config = OutputFileConfig
.builder()
.withPartPrefix("prefix")
.withPartSuffix(".ext")
.build();
but I have written the file sink using SQL syntax. How can I make this generate files with suffix .parquet
?
CREATE TABLE save_polystar_aggregates_core (
...
)
PARTITIONED BY (EVENT_DAY, EVENT_HOUR)
WITH (
'connector' = 'filesystem',
'path' = 's3://.../core',
'format' = 'parquet',
'sink.partition-commit.delay'='1 h',
'sink.partition-commit.policy.kind'='success-file',
'sink.partition-commit.trigger'='partition-time'
);
Also, can I change the directory names from
path
└── EVENT_DAY=2019-08-25
syntax to
path
└── 2019-08-25
?sap1ens
04/06/2023, 4:11 PMDavid Anderson
04/06/2023, 4:48 PMAri Huttunen
04/06/2023, 4:50 PMAri Huttunen
04/06/2023, 4:53 PMDavid Anderson
04/06/2023, 4:55 PMAri Huttunen
04/06/2023, 5:07 PMAri Huttunen
04/06/2023, 5:10 PMAri Huttunen
04/06/2023, 5:11 PMAri Huttunen
04/06/2023, 5:13 PMAri Huttunen
04/06/2023, 5:17 PMAri Huttunen
04/06/2023, 5:20 PMDavid Anderson
04/06/2023, 5:26 PMMax Dubinin
04/07/2023, 10:55 AMDavid Anderson
04/07/2023, 6:33 PM