JoyJoyJo commented on code in PR #12758:
URL: https://github.com/apache/hudi/pull/12758#discussion_r1938909394
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/clustering/run/strategy/SparkConsistentBucketClusteringExecutionStrategy.java:
##########
@@ -80,7 +81,7 @@ public HoodieData<WriteStatus>
performClusteringWithRecordsAsRow(Dataset<Row> in
Dataset<Row> repartitionedRecords =
partitioner.repartitionRecords(inputRecords, numOutputGroups);
return HoodieDatasetBulkInsertHelper.bulkInsert(repartitionedRecords,
instantTime, getHoodieTable(), newConfig,
- partitioner.arePartitionRecordsSorted(), shouldPreserveHoodieMetadata);
+ partitioner.arePartitionRecordsSorted(), shouldPreserveHoodieMetadata,
WriteOperationType.CLUSTER);
Review Comment:
I think this just happens in clustering for cow table (enable row writer).
Because spark uses a more permissive schema (all fields nullable) when reading
records of older versions of parquet files.
The schemas used to read and write records in clustering (disable row writer
or mor table) and other table service are aligned with avro schema.
--
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]