[
https://issues.apache.org/jira/browse/FLINK-20587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17350934#comment-17350934
]
luoyuxia commented on FLINK-20587:
----------------------------------
[~x1q1j1] hi, I think data type `TIMESTAMP WITH LOCAL TIME ZONE` has been
supported since flink 1.12.
> Support TIMESTAMP WITH LOCAL TIME ZONE type for datagen source
> --------------------------------------------------------------
>
> Key: FLINK-20587
> URL: https://issues.apache.org/jira/browse/FLINK-20587
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Ecosystem
> Affects Versions: 1.11.1, 1.11.2
> Reporter: Forward Xu
> Priority: Minor
> Labels: auto-deprioritized-major
>
> TABLE DDL:
> {code:java}
> // code placeholder
> CREATE TABLE sourceTable (
> userid int,
> f_random_str STRING,
> order_time TIMESTAMP(3) WITH LOCAL TIME ZONE
> ) WITH (
> 'connector' = 'datagen',
> 'rows-per-second'='100',
> 'fields.userid.kind'='random',
> 'fields.userid.min'='1',
> 'fields.userid.max'='100',
> 'fields.f_random_str.length'='10'
> );
> CREATE TABLE print_table (
> userid int,
> f_random_str STRING,
> order_time TIMESTAMP(3) WITH LOCAL TIME ZONE
> ) WITH (
> 'connector' = 'print'
> );{code}
> The DML SQL:
> {code:java}
> // code placeholder
> insert into default_catalog.default_database.print_table select * from
> default_catalog.default_database.sourceTable;{code}
> *Exception:*
> {code:java}
> // code placeholder
> Flink SQL> insert into default_catalog.default_database.print_table select *
> from default_catalog.default_database.sourceTable;
> [ERROR] Could not execute SQL statement. Reason:
> org.apache.flink.table.api.ValidationException: Unsupported type:
> TIMESTAMP(3) WITH LOCAL TIME ZONE
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)