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

Zhenghua Gao updated FLINK-15968:
---------------------------------
    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. 

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.

 

  was:
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(n) or VARBINARY(n) to 
BYTE_PRIMITIVE_ARRAY_TYPE_INFO. 

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.

 


> LegacyTypeInfoDataTypeConverter should support conversion between 
> BINARY/VARBINARY and BYTE_PRIMITIVE_ARRAY_TYPE_INFO
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-15968
>                 URL: https://issues.apache.org/jira/browse/FLINK-15968
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Legacy Planner, Table SQL / Planner
>    Affects Versions: 1.11.0
>            Reporter: Zhenghua Gao
>            Priority: Major
>
> 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. 
> 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.
>  



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

Reply via email to