empcl commented on code in PR #11006:
URL: https://github.com/apache/hudi/pull/11006#discussion_r1565987327


##########
hudi-sync/hudi-sync-common/src/main/java/org/apache/hudi/sync/common/util/Parquet2SparkSchemaUtils.java:
##########
@@ -140,7 +141,7 @@ private static String convertGroupField(GroupType field) {
         ValidationUtils.checkArgument(field.getFieldCount() == 1, "Illegal 
List type: " + field);
         Type repeatedType = field.getType(0);
         if (isElementType(repeatedType, field.getName())) {
-          return arrayType(repeatedType, false);
+          return arrayType(repeatedType, true);

Review Comment:
   When Flink uses `HoodieHiveCatalog#createTable()` to create a table, it will 
retrieve the structural information of the current table. Obtain table 
properties through the `SparkDataSourceTableUtils. getSparkTablePropertys() 
`method, where the `Parquet2SparkSchemeUtils. convertToSparkSchemeJson 
(reOrderedType) `method will be called to obtain table structure information, 
which is the value of the` spark.sql.sources.schema.numParts` field



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