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

[jira] [Commented] (FLINK-15038) Get field DataType of TableSchema should return DataType with default conversion class

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

Jingsong Lee commented on FLINK-15038:
--------------------------------------

CC: [~twalthr] [~dwysakowicz]

> Get field DataType of TableSchema should return DataType with default conversion class
> --------------------------------------------------------------------------------------
>
>                 Key: FLINK-15038
>                 URL: https://issues.apache.org/jira/browse/FLINK-15038
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API
>            Reporter: Jingsong Lee
>            Priority: Major
>             Fix For: 1.10.0
>
>
> Now, the user and planner construct TableSchema with various DataTypes, them maybe have various conversion classes.
> For example, return DataType of Functions maybe with various TypeInformations and lead to various conversion classes.
> TableSchema should only have logical informations instead of various conversion classes.
> This ticket want to clean the field DataType in TableSchema and return a consistent conversion classes to users.
> Modify:
> getFieldDataTypes/getFieldDataType/toRowDataType in TableSchema.
> Before return, we can bridgeTo default conversion class using TypeConversions.fromLogicalToDataType(type.getLogicalType()).



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