JingsongLi commented on PR #7812:
URL: https://github.com/apache/paimon/pull/7812#issuecomment-4451931747
We can do this modification:
- BTreeIndexMeta remains unchanged (compatible with old data)
- In BTreeFileMetaSelector, all comparison operations check whether
getFirstKey()/getLastKey() is null before calling deserialize():
- For one-sided comparison (<,<=,>,>=): If the required key is null,
conservatively return true (including the file)
- For range operations (equal, in, between): if any key is null,
conservatively return true
This not only avoids NPE, but also avoids missing potentially matching files
(at most, reading unnecessary files will not result in missing results), and is
fully compatible with old serialization formats.
--
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]