You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2019/12/07 12:32:00 UTC

[jira] [Resolved] (FLINK-14645) Data types defined in DDL will lose precision and nullability when converting to properties

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

Jark Wu resolved FLINK-14645.
-----------------------------
    Resolution: Fixed

[FLINK-14645][docs] Update documentation to use "data-type" instead of "type" to declare a data type
 - 1.10.0: 2ecf7cacbe742099d78c528de962fccf13c14629

[FLINK-14645][connectors] Support new schema properties for SQL connectors
 - 1.10.0: 8b8a9eadb63ef7b02b9810cce89976f4dae96230

[FLINK-14645][json] Support LocalTimestamp/LocalDate/LocalTime for JSON format
 - 1.10.0: 6c0bc5b2c133f403bc5e90e400d31cfaa1079bd3

[FLINK-14645][csv] Support LocalTimestamp/LocalDate/LocalTime for CSV format
 - 1.10.0: 54b3fcc64bc7620e104f0531609b7a3e29e5f1f0

[FLINK-14645][table] Support to keep nullability and precision when converting DataTypes to properties
 - 1.10.0: 3088c7ab03a28f5a85af7c439380d23817cce5b3

[FLINK-14645][table-common] Support to parse LegacyTypeInformationType
 - 1.10.0: 5696c14ed071be9add2c4a45c79930ca53230cb5


> Data types defined in DDL will lose precision and nullability when converting to properties
> -------------------------------------------------------------------------------------------
>
>                 Key: FLINK-14645
>                 URL: https://issues.apache.org/jira/browse/FLINK-14645
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / API
>            Reporter: Jark Wu
>            Assignee: Jark Wu
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently, data types defined in DDL will be converted to {{TypeInformation}} and use {{TypeStringUtils}} to serialize/deserialize which will lose the precision and nullablitiy information. 
> We can use {{LogicalType#asSerializableString}} and {{LogicalTypeParser}} to serialize/deserialize data types which keeps all the information. But we need to figure out how to keep compability with previous versions.



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