danny0405 commented on code in PR #11162:
URL: https://github.com/apache/hudi/pull/11162#discussion_r1629072945
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/common/HoodieSparkEngineContext.java:
##########
@@ -229,6 +231,13 @@ public void cancelAllJobs() {
javaSparkContext.cancelAllJobs();
}
+ @Override
+ public <I, O> O aggregate(HoodieData<I> data, O zeroValue,
Functions.Function2<O, I, O> seqOp, Functions.Function2<O, O, O> combOp) {
+ Function2<O, I, O> seqOpFunc = seqOp::apply;
+ Function2<O, O, O> combOpFunc = combOp::apply;
+ return HoodieJavaRDD.getJavaRDD(data).aggregate(zeroValue, seqOpFunc,
combOpFunc);
Review Comment:
So you are saying the cache key could be string anyway, it's the merger that
plays the role for the secondary index?
--
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]