Jark Wu created FLINK-15161:
-------------------------------
Summary: Introduce TypeTransformation interface and basic transformations
Key: FLINK-15161
URL:
https://issues.apache.org/jira/browse/FLINK-15161 Project: Flink
Issue Type: Improvement
Components: Table SQL / API
Reporter: Jark Wu
Assignee: Jark Wu
Currently, the default DataType derived from properties is the default conversion now. However, some connectors/formats are still using sql Timestamp. But bridging DataType into sql Timestamp is not simple, because DataType is nested. So we propose to introduce a TypeTransformation which transform one data type to another, this is also a useful tool for FLIP-65.
The proposal including:
- Remove {{CallContext}} from the exiting {{TypeTransformation}}.
- add a package {{o.a.f.table.types.inference.transforms}}
- add commonly used transform classes there, e.g. {{timeToSqlTypes}}
- add a class `o.a.f.table.types.inference.TypeTransforms` for listing all available transforms
--
This message was sent by Atlassian Jira
(v8.3.4#803005)