You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "the-other-tim-brown (via GitHub)" <gi...@apache.org> on 2026/01/27 20:58:10 UTC

[PR] Bloom iterators [hudi]

the-other-tim-brown opened a new pull request, #18015:
URL: https://github.com/apache/hudi/pull/18015

   ### Describe the issue this Pull Request addresses
   
   <!-- Either describe the issue inline here with motivation behind the changes 
        (or) link to an issue by including `Closes #<issue-number>` for context. 
        If this PR includes changes to the storage format, public APIs,
        or has breaking changes, use `!` (e.g., feat!: ...) -->
   
   ### Summary and Changelog
   
   <!-- Short, plain-English summary of what users gain or what changed in behavior.
        Followed by a detailed log of all the changes. Highlight if any code was copied. -->
   
   ### Impact
   
   <!-- Describe any public API or user-facing feature change or any performance impact. -->
   
   ### Risk Level
   
   <!-- Accepted values: none, low, medium or high. Other than `none`, explain the risk.
        If medium or high, explain what verification was done to mitigate the risks. -->
   
   ### Documentation Update
   
   <!-- Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".
   
   - The config description must be updated if new configs are added or the default value of the configs are changed.
   - Any new feature or user-facing change requires updating the Hudi website. Please follow the 
     [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make changes to the website. -->
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Enough context is provided in the sections above
   - [ ] Adequate tests were added if applicable
   


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on code in PR #18015:
URL: https://github.com/apache/hudi/pull/18015#discussion_r2747674446


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bloom/HoodieBloomIndexCheckFunction.java:
##########
@@ -102,26 +103,24 @@ protected List<HoodieKeyLookupResult> computeNext() {
             keyLookupHandle.addKey(recordKey);
           } else {
             // do the actual checking of file & break out
-            ret.add(keyLookupHandle.getLookupResult());
+            HoodieKeyLookupResult result = keyLookupHandle.getLookupResult();
             keyLookupHandle = new HoodieKeyLookupHandle(config, hoodieTable, partitionPathFilePair);
             keyLookupHandle.addKey(recordKey);
-            break;
+            return result;
           }
         }
 
-        // handle case, where we ran out of input, close pending work, update return val
-        if (!inputItr.hasNext()) {
-          ret.add(keyLookupHandle.getLookupResult());
-        }
+        // handle case, where we ran out of input, close pending work, return result
+        HoodieKeyLookupResult result = keyLookupHandle.getLookupResult();

Review Comment:
   nit: Should `keyLookupHandle != null` be checked in case `filePartitionRecordKeyPairItr` is empty to be defensive?



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Bloom iterators [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3807516975

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e2738e0a469dd1bd9e55f45799b14b5a850c17a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown merged PR #18015:
URL: https://github.com/apache/hudi/pull/18015


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3807896873

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e2738e0a469dd1bd9e55f45799b14b5a850c17a Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410) 
   * 9ba7b33064d47b7218e85630b750cd8b118ae50c UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3821667533

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420",
       "triggerID" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11528",
       "triggerID" : "dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11528) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "nsivabalan (via GitHub)" <gi...@apache.org>.
nsivabalan commented on code in PR #18015:
URL: https://github.com/apache/hudi/pull/18015#discussion_r2744258621


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bloom/ListBasedHoodieBloomIndexHelper.java:
##########
@@ -67,10 +66,9 @@ public HoodiePairData<HoodieKey, HoodieRecordLocation> findMatchingFilesForRecor
         CollectionUtils.toStream(
             new HoodieBloomIndexCheckFunction<Pair<HoodieFileGroupId, String>>(hoodieTable, config, Pair::getLeft, Pair::getRight)
                 .apply(fileComparisonPairList.iterator())
-            )
-            .flatMap(Collection::stream)
-            .filter(lr -> lr.getMatchingRecordKeysAndPositions().size() > 0)
-            .collect(toList());
+        )
+        .filter(lr -> lr.getMatchingRecordKeysAndPositions().size() > 0)

Review Comment:
   can we do `!lr.getMatchingRecordKeysAndPositions().isEmpty()` 



##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bloom/HoodieBloomIndexCheckFunction.java:
##########
@@ -63,26 +60,30 @@ public HoodieBloomIndexCheckFunction(HoodieTable hoodieTable,
   }
 
   @Override
-  public Iterator<List<HoodieKeyLookupResult>> apply(Iterator<I> fileGroupIdRecordKeyPairIterator) {
+  public Iterator<HoodieKeyLookupResult> apply(Iterator<I> fileGroupIdRecordKeyPairIterator) {
     return new LazyKeyCheckIterator(fileGroupIdRecordKeyPairIterator);
   }
 
-  protected class LazyKeyCheckIterator extends LazyIterableIterator<I, List<HoodieKeyLookupResult>> {
+  protected class LazyKeyCheckIterator implements Iterator<HoodieKeyLookupResult> {
 
-    private HoodieKeyLookupHandle keyLookupHandle;
+    private final Iterator<I> filePartitionRecordKeyTripletItr;
+    private HoodieKeyLookupHandle keyLookupHandle = null;
 
     LazyKeyCheckIterator(Iterator<I> filePartitionRecordKeyTripletItr) {
-      super(filePartitionRecordKeyTripletItr);
+      this.filePartitionRecordKeyTripletItr = filePartitionRecordKeyTripletItr;

Review Comment:
   minor. in L64 we name this as pairIterator, and here we are naming it as TripleItr. can we align the naming. 



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on code in PR #18015:
URL: https://github.com/apache/hudi/pull/18015#discussion_r2747695382


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bloom/HoodieFileProbingFunction.java:
##########
@@ -67,19 +69,43 @@ public HoodieFileProbingFunction(Broadcast<HoodieTableFileSystemView> baseFileOn
   }
 
   @Override
-  public Iterator<List<HoodieKeyLookupResult>> call(Iterator<Tuple2<HoodieFileGroupId, HoodieBloomFilterProbingResult>> tuple2Iterator) throws Exception {
+  public Iterator<HoodieKeyLookupResult> call(Iterator<Tuple2<HoodieFileGroupId, HoodieBloomFilterProbingResult>> tuple2Iterator) throws Exception {
     return new BloomIndexLazyKeyCheckIterator(tuple2Iterator);
   }
 
   private class BloomIndexLazyKeyCheckIterator
-      extends LazyIterableIterator<Tuple2<HoodieFileGroupId, HoodieBloomFilterProbingResult>, List<HoodieKeyLookupResult>> {
+      extends LazyIterableIterator<Tuple2<HoodieFileGroupId, HoodieBloomFilterProbingResult>, HoodieKeyLookupResult> {
+
+    private List<HoodieKeyLookupResult> currentBatch;
+    private int currentBatchIndex;
 
     public BloomIndexLazyKeyCheckIterator(Iterator<Tuple2<HoodieFileGroupId, HoodieBloomFilterProbingResult>> tuple2Iterator) {
       super(tuple2Iterator);
+      this.currentBatch = Collections.emptyList();
+      this.currentBatchIndex = 0;
     }
 
     @Override
-    protected List<HoodieKeyLookupResult> computeNext() {
+    protected HoodieKeyLookupResult computeNext() {
+      // If we have results left in the current batch, return next one
+      if (currentBatchIndex < currentBatch.size()) {
+        return currentBatch.get(currentBatchIndex++);
+      }
+
+      // Need to fetch next batch
+      currentBatch = fetchNextBatch();
+      currentBatchIndex = 0;
+
+      // If new batch is empty, we're done
+      if (currentBatch.isEmpty()) {
+        return null;

Review Comment:
   Should caller filter out `null`s?



##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bloom/SparkHoodieBloomIndexHelper.java:
##########
@@ -181,14 +181,14 @@ public HoodiePairData<HoodieKey, HoodieRecordLocation> findMatchingFilesForRecor
           .mapPartitions(new HoodieSparkBloomIndexCheckFunction(hoodieTable, config), true);
     }
 
-    return HoodieJavaPairRDD.of(keyLookupResultRDD.flatMap(List::iterator)
-        .filter(lr -> lr.getMatchingRecordKeysAndPositions().size() > 0)
+    return HoodieJavaPairRDD.of(keyLookupResultRDD
+        .filter(lr -> !lr.getMatchingRecordKeysAndPositions().isEmpty())

Review Comment:
   Should L160 with `HoodieFileProbingFunction` filter for non-nulls given that `HoodieFileProbingFunction#next` can return `null`?



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3807636526

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e2738e0a469dd1bd9e55f45799b14b5a850c17a Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #18015:
URL: https://github.com/apache/hudi/pull/18015#discussion_r2747744802


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/index/bloom/HoodieBloomIndexCheckFunction.java:
##########
@@ -102,26 +103,24 @@ protected List<HoodieKeyLookupResult> computeNext() {
             keyLookupHandle.addKey(recordKey);
           } else {
             // do the actual checking of file & break out
-            ret.add(keyLookupHandle.getLookupResult());
+            HoodieKeyLookupResult result = keyLookupHandle.getLookupResult();
             keyLookupHandle = new HoodieKeyLookupHandle(config, hoodieTable, partitionPathFilePair);
             keyLookupHandle.addKey(recordKey);
-            break;
+            return result;
           }
         }
 
-        // handle case, where we ran out of input, close pending work, update return val
-        if (!inputItr.hasNext()) {
-          ret.add(keyLookupHandle.getLookupResult());
-        }
+        // handle case, where we ran out of input, close pending work, return result
+        HoodieKeyLookupResult result = keyLookupHandle.getLookupResult();

Review Comment:
   If it is empty, hasNext should return false immediately



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3808436228

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420",
       "triggerID" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 9ba7b33064d47b7218e85630b750cd8b118ae50c Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Bloom iterators [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3807528374

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e2738e0a469dd1bd9e55f45799b14b5a850c17a Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3821435759

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420",
       "triggerID" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 9ba7b33064d47b7218e85630b750cd8b118ae50c Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420) 
   * dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3821446220

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420",
       "triggerID" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "triggerType" : "PUSH"
     }, {
       "hash" : "dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11528",
       "triggerID" : "dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 9ba7b33064d47b7218e85630b750cd8b118ae50c Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420) 
   * dcba550f9ef2fe279b502fb8375c3c5fe88f4ec5 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11528) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #18015:
URL: https://github.com/apache/hudi/pull/18015#discussion_r2749908336


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/index/bloom/SparkHoodieBloomIndexHelper.java:
##########
@@ -181,14 +181,14 @@ public HoodiePairData<HoodieKey, HoodieRecordLocation> findMatchingFilesForRecor
           .mapPartitions(new HoodieSparkBloomIndexCheckFunction(hoodieTable, config), true);
     }
 
-    return HoodieJavaPairRDD.of(keyLookupResultRDD.flatMap(List::iterator)
-        .filter(lr -> lr.getMatchingRecordKeysAndPositions().size() > 0)
+    return HoodieJavaPairRDD.of(keyLookupResultRDD
+        .filter(lr -> !lr.getMatchingRecordKeysAndPositions().isEmpty())

Review Comment:
   Added follow-up here: https://github.com/apache/hudi/pull/18063



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] perf: Bloom filter improvements for memory usage [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #18015:
URL: https://github.com/apache/hudi/pull/18015#issuecomment-3807913355

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410",
       "triggerID" : "8e2738e0a469dd1bd9e55f45799b14b5a850c17a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420",
       "triggerID" : "9ba7b33064d47b7218e85630b750cd8b118ae50c",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e2738e0a469dd1bd9e55f45799b14b5a850c17a Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11410) 
   * 9ba7b33064d47b7218e85630b750cd8b118ae50c Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=11420) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org