hudi-bot opened a new issue, #15031:
URL: https://github.com/apache/hudi/issues/15031

   this existing logic is problematic due to we can’t enforce user’s 
partitioner to return JavaRDD, this potentially breaks. 
   
   
   {code:java}
       BulkInsertPartitioner partitioner = 
userDefinedBulkInsertPartitioner.isPresent()
           ? userDefinedBulkInsertPartitioner.get()
           : 
BulkInsertInternalPartitionerFactory.get(config.getBulkInsertSortMode());
       repartitionedRecords = (JavaRDD<HoodieRecord<T>>) 
partitioner.repartitionRecords(dedupedRecords, parallelism);
   {code}
   
   
   The factory is used only in spark for now. So, we expect JavaRDD or 
HoodieData. The API can be made explicit about the constraint.
   
   ## JIRA info
   
   - Link: https://issues.apache.org/jira/browse/HUDI-3463
   - Type: 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]

Reply via email to