[
https://issues.apache.org/jira/browse/FLINK-13604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17329056#comment-17329056
]
Flink Jira Bot commented on FLINK-13604:
----------------------------------------
This critical issue is unassigned and itself and all of its Sub-Tasks have not
been updated for 7 days. So, it has been labeled "stale-critical". If this
ticket is indeed critical, please either assign yourself or give an update.
Afterwards, please remove the label. In 7 days the issue will be deprioritized.
> 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 Chen
> Priority: Critical
> Labels: stale-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
(v8.3.4#803005)