[
https://issues.apache.org/jira/browse/FLINK-13604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tzu-Li (Gordon) Tai updated FLINK-13604:
----------------------------------------
Fix Version/s: (was: 1.9.0)
> All kinds of problem when conversion from Logical type to DataType
> ------------------------------------------------------------------
>
> Key: FLINK-13604
> URL: https://issues.apache.org/jira/browse/FLINK-13604
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / API
> Affects Versions: 1.9.0
> Reporter: Danny Chan
> Priority: Critical
>
> For Blink Planner:
> # Time(3) is converted to Time, the precision is lost
> # ROW<`f0` INT NOT NULL, `f1` BOOLEAN> is converted to ROW<`f0` INT, `f1`
> BOOLEAN>, the nullable attr is lost
> the conversion code is:
> {code:java}
> LogicalTypeDataTypeConverter.fromLogicalTypeToDataType(FlinkTypeFactory.toLogicalType(relType));
> {code}
> For Flink planner:
> # All the Char type is converted to String type, which is totally wrong.
> # All the decimal type is converted to Legacy(BigDecimal) which is confusing
> ..
> The conversion code is:
> {code:java}
> TypeConversions.fromLegacyInfoToDataType(FlinkTypeFactory.toTypeInfo(relType))
> {code}
> Please see the tests
> SqlToOperationConverterTest#testCreateTableWithFullDataTypes.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)