You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (Jira)" <ji...@apache.org> on 2021/01/18 14:22:00 UTC

[jira] [Closed] (FLINK-20862) Add a converter from TypeInformation to DataType

     [ https://issues.apache.org/jira/browse/FLINK-20862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Walther closed FLINK-20862.
--------------------------------
    Fix Version/s: 1.13.0
       Resolution: Fixed

Fixed in 1.13.0:

[table] Support creating DataType from TypeInformation
fe80cc61f69f1224eb28fdbbb2d6747f38613c76

Make raw types of TypeInformation resolvable
2e8b6eab19df6e53b6031dc4535988b3254e19dc

> Add a converter from TypeInformation to DataType
> ------------------------------------------------
>
>                 Key: FLINK-20862
>                 URL: https://issues.apache.org/jira/browse/FLINK-20862
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / API
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.13.0
>
>
> Implement a new TypeInfoDataTypeConverter that will no longer produce LegacyTypeInformationType.
> As mentioned in the FLIP:
> - All types from DataStream API should be supported by this converter.
> - TupleTypeInfoBase will be translated into a proper RowType or StructuredType.
> - BigDecimals will be converted to DECIMAL(38,18) by default.
> - Composite types (tuples, POJOs, rows) will be flattened by default if they are used as top-level records (similar to the old behavior).
> - The order of POJO field's is determined by the DataTypeExtractor and must not be defined manually anymore.
> - GenericTypeInfo is converted to RawType immediately by considering the current configuration.
> - A DataStream that originated from Table API will keep its DataType information due to ExternalTypeInfo implementing DataTypeQueryable.



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