You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/06/06 01:11:55 UTC

[GitHub] [hudi] marchpure commented on pull request #5755: [HUDI-4192] HoodieHFileReader scan top cells after bottom cells throw…

marchpure commented on PR #5755:
URL: https://github.com/apache/hudi/pull/5755#issuecomment-1146933744

   > hi @marchpure One thing I dont understand is that minRecordKey and maxRecordKey are taken from the fileinfo of the hfile, not from scanning the hfile. Why do minRecordKey and maxRecordKey cause NPE?
   
   As test cases I added in this pr, when processed those following code.
   **hfileReader.getRecordsByKeyPrefixIterator(Arrays.asList(“key50”, “key0”)
   hfileReader.getRecordsByKeyPrefixIterator(Arrays.asList(“key1”, “key0”)**
   
   note: here, hfile contains key00、key01... key50
   
   In this scenario, key50 or key1 will set the scanner to the end or middle of the hfile, but does not reset the scanner position when scan key0. 
   Causes an null pointer or empty result when scan key0.
   


-- 
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