You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "Aitozi (via GitHub)" <gi...@apache.org> on 2023/12/19 03:05:48 UTC

[PR] [Bug] Fix the IndexOutOfBoundsException when lookup empty sortedRun [incubator-paimon]

Aitozi opened a new pull request, #2530:
URL: https://github.com/apache/incubator-paimon/pull/2530

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   Linked issue: close #2528
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [Bug] Fix the IndexOutOfBoundsException when lookup empty sortedRun [incubator-paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on code in PR #2530:
URL: https://github.com/apache/incubator-paimon/pull/2530#discussion_r1430921425


##########
paimon-core/src/main/java/org/apache/paimon/mergetree/LookupUtils.java:
##########
@@ -59,6 +59,9 @@ public static <T> T lookup(
             SortedRun level,
             BiFunctionWithIOE<InternalRow, DataFileMeta, T> lookup)
             throws IOException {
+        if (!level.nonEmpty()) {

Review Comment:
   Can you add a test for this method?



-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [Bug] Fix the IndexOutOfBoundsException when lookup empty sortedRun [incubator-paimon]

Posted by "Aitozi (via GitHub)" <gi...@apache.org>.
Aitozi commented on code in PR #2530:
URL: https://github.com/apache/incubator-paimon/pull/2530#discussion_r1431055209


##########
paimon-core/src/main/java/org/apache/paimon/mergetree/LookupUtils.java:
##########
@@ -59,6 +59,9 @@ public static <T> T lookup(
             SortedRun level,
             BiFunctionWithIOE<InternalRow, DataFileMeta, T> lookup)
             throws IOException {
+        if (!level.nonEmpty()) {

Review Comment:
   done



-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [Bug] Fix the IndexOutOfBoundsException when lookup empty sortedRun [incubator-paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #2530:
URL: https://github.com/apache/incubator-paimon/pull/2530


-- 
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: issues-unsubscribe@paimon.apache.org

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