vinothchandar commented on a change in pull request #2306:
URL: https://github.com/apache/hudi/pull/2306#discussion_r538235679
##########
File path:
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/simple/SparkHoodieSimpleIndex.java
##########
@@ -147,6 +150,12 @@ public boolean isImplicitWithStorage() {
JavaSparkContext jsc = HoodieSparkEngineContext.getSparkContext(context);
int fetchParallelism = Math.max(1, Math.max(baseFiles.size(),
parallelism));
return jsc.parallelize(baseFiles, fetchParallelism)
- .flatMapToPair(partitionPathBaseFile -> new
HoodieKeyLocationFetchHandle(config, hoodieTable,
partitionPathBaseFile).locations());
+ .flatMapToPair( partitionPathBaseFile -> {
+ Iterator<ImmutablePair<HoodieKey, HoodieRecordLocation>> iter =
Review comment:
is there a way to do this lazily? convert to a stream and map to tuple
and get the underlying iterator?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]