Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15038

Get field DataType of TableSchema should return DataType with default conversion class

    XMLWordPrintableJSON

Details

    Description

      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()).

      Attachments

        Activity

          People

            Unassigned Unassigned
            lzljs3620320 Jingsong Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: