CREATE TABLE paimon_minio.db1.tb1 (
s string,
ts1 TIMESTAMP(6),
ts2 TIMESTAMP(6) WITH LOCAL TIME ZONE
) WITH (
'write-only' = 'true',
'file.format' = 'parquet'
);
insert into paimon_minio.db1.tb1 values ('flink:2024-01-02 10:04:05.123456789',timestamp '2024-01-02 10:04:05.123456789',timestamp '2024-01-02 10:04:05.123456789');
Search before asking
Paimon version
0.8.1
Compute Engine
Flink 1.17.2 and JavaAPI
Minimal reproduce step
CREATE TABLE
paimon_minio
.db1
.tb1
(s
string,ts1
TIMESTAMP(6),ts2
TIMESTAMP(6) WITH LOCAL TIME ZONE ) WITH ( 'write-only' = 'true', 'file.format' = 'parquet' );insert into
paimon_minio
.db1
.tb1
values ('flink:2024-01-02 10:04:05.123456789',timestamp '2024-01-02 10:04:05.123456789',timestamp '2024-01-02 10:04:05.123456789');print in console:
It is right for
s
andts1
, but it is wrong forts2
, we expect2024-01-02T10:04:05.123456
forts2
. Is this 8 hours missing a time zone?What doesn't meet your expectations?
Use JavaAPI to directly obtain the correct result.
Anything else?
No response
Are you willing to submit a PR?