You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/02/27 10:33:20 UTC

[GitHub] [flink] wuchong commented on a change in pull request #11236: [FLINK-16269][FLINK-16108][table-planner-blink] Fix schema of query and sink do not match when generic or POJO type is requested

wuchong commented on a change in pull request #11236: [FLINK-16269][FLINK-16108][table-planner-blink] Fix schema of query and sink do not match when generic or POJO type is requested
URL: https://github.com/apache/flink/pull/11236#discussion_r385041279
 
 

 ##########
 File path: flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/LegacyTypeInfoDataTypeConverter.java
 ##########
 @@ -181,6 +182,10 @@ else if (typeInfo instanceof CompositeType) {
 			return createLegacyType(LogicalTypeRoot.STRUCTURED_TYPE, typeInfo);
 		}
 
+		else if (typeInfo instanceof GenericTypeInfo) {
+			return DataTypes.RAW(typeInfo).bridgedTo(typeInfo.getTypeClass());
 
 Review comment:
   Please help to check this change. cc @twalthr 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services