YuweiXiao commented on a change in pull request #4441:
URL: https://github.com/apache/hudi/pull/4441#discussion_r814555362
##########
File path:
hudi-client/hudi-java-client/src/main/java/org/apache/hudi/table/action/commit/JavaBulkInsertHelper.java
##########
@@ -117,7 +116,7 @@ public static JavaBulkInsertHelper newInstance() {
new JavaLazyInsertIterable<>(repartitionedRecords.iterator(), true,
config, instantTime, table,
fileIdPrefixProvider.createFilePrefix(""),
table.getTaskContextSupplier(),
- new CreateHandleFactory<>()).forEachRemaining(writeStatuses::addAll);
+
partitioner.getWriteHandleFactory(0)).forEachRemaining(writeStatuses::addAll);
Review comment:
True... It is only for Java Engine, where the bulk_insert routes all
record to a single file group. Let me check if there is a better way to do
abstraction for Java engine.
--
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]