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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Table SQL / API
    • Labels:
      None

      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

            • Assignee:
              lzljs3620320 Jingsong Lee
              Reporter:
              lzljs3620320 Jingsong Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: