haruki-830 commented on code in PR #4496:
URL: https://github.com/apache/flink-cdc/pull/4496#discussion_r3718907958
##########
flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/typeutils/CalciteDataTypeConverter.java:
##########
@@ -339,6 +339,10 @@ public static DataType
convertCalciteRelDataTypeToDataType(RelDataType relDataTy
case VARIANT:
return DataTypes.VARIANT();
case ROW:
+ return DataTypes.ROW(
+ relDataType.getFieldList().stream()
+ .map(field ->
convertCalciteRelDataTypeToDataType(field.getType()))
+ .toArray(DataType[]::new));
Review Comment:
Fixed in the latest commit. Added a regression test as well.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]