leesf commented on code in PR #4441:
URL: https://github.com/apache/hudi/pull/4441#discussion_r856885640
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/execution/bulkinsert/RDDSpatialCurveSortPartitioner.java:
##########
@@ -64,14 +64,13 @@ public
RDDSpatialCurveSortPartitioner(HoodieSparkEngineContext sparkEngineContex
this.orderByColumns = orderByColumns;
this.layoutOptStrategy = layoutOptStrategy;
this.curveCompositionStrategyType = curveCompositionStrategyType;
- this.schema = schema;
+ this.schema = new SerializableSchema(schema);
}
@Override
public JavaRDD<HoodieRecord<T>> repartitionRecords(JavaRDD<HoodieRecord<T>>
records, int outputSparkPartitions) {
- SerializableSchema serializableSchema = new SerializableSchema(schema);
Review Comment:
nice improvement.
--
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]