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

LegacyTypeInfoDataTypeConverter should support conversion from BINARY/VARBINARY to BYTE_PRIMITIVE_ARRAY_TYPE_INFO

    XMLWordPrintableJSON

Details

    Description

      Currently LegacyTypeInfoDataTypeConverter only support conversion between DataTypes.BYTES and BYTE_PRIMITIVE_ARRAY_TYPE_INFO. When we update connectors to new type system, we need to convert BINARY(p) or VARBINARY(p) to BYTE_PRIMITIVE_ARRAY_TYPE_INFO.  A similar logic has been implemented for CHAR/VARCHAR type.

      The Hive connector achieve this via depending blink planner‘s conversion logic, which is odd because a planner dependency won't be necessary for connectors.

       
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            docete Zhenghua Gao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: