[ 
https://issues.apache.org/jira/browse/FLINK-19752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218241#comment-17218241
 ] 

AT-Fieldless commented on FLINK-19752:
--------------------------------------

Maybe we can set a default value for Decimal DataType, such as Decimal(30,6). 
So in the mapping, _createLegacyType_ can not be used.

> Convert BigDicimal TypeInformation to DataTypes error
> -----------------------------------------------------
>
>                 Key: FLINK-19752
>                 URL: https://issues.apache.org/jira/browse/FLINK-19752
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Type Serialization System
>    Affects Versions: 1.11.2
>            Reporter: AT-Fieldless
>            Priority: Major
>              Labels: table-type
>
> As mentioned in [Flink-15485|https://github.com/apache/flink/pull/10774] when 
> I use LegacyTypeInfoDataTypeConverter to convert BigDicimal to corresponsed 
> DataTypes. It throws 
> _org.apache.flink.table.types.logical.LegacyTypeInformationType cannot be 
> cast to org.apache.flink.table.types.logical.DecimalType error_



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to