skywalker0618 commented on code in PR #20337:
URL: https://github.com/apache/hudi/pull/20337#discussion_r4276949943


##########
hudi-flink-datasource/hudi-flink1.18.x/src/main/java/org/apache/hudi/table/format/cow/ParquetSplitReaderUtil.java:
##########
@@ -560,12 +560,27 @@ private static WritableColumnVector 
createWritableColumnVector(
                 && primitiveType.getOriginalType() == OriginalType.DECIMAL,
             getPrimitiveTypeCheckFailureMessage(typeName, fieldType));
         return new HeapDecimalVector(batchSize);
-      case ARRAY:
+      case ARRAY: {
         ArrayType arrayType = (ArrayType) fieldType;
+        // Locate the element type with the same LIST backward-compatibility 
rules as
+        // getArrayElementColumn, so that the vectors line up with the 
ParquetField tree.
+        Type elementType = physicalType;

Review Comment:
   Done



-- 
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]

Reply via email to