lszskye opened a new pull request, #579:
URL: https://github.com/apache/paimon-cpp/pull/579

   ### Purpose
   
   The default `FileIndexReader::VisitIn()` and `VisitNotIn()` implementations
   return success with a null result when given an empty literal list. Bloom
   index evaluation inherits these implementations and can dereference the
   null result.
   
   Reject empty `IN` and `NOT IN` lists with `Status::Invalid` during predicate
   validation and when file index readers are called directly. Apply consistent
   checks across reader implementations and correct the bitmap `NOT IN` error
   message.
   
   ### Tests
   
   - Verify that validation rejects empty `IN` and `NOT IN` lists, including
     predicates nested within `AND` and `OR`.
   - Verify that non-empty lists and `IS NULL` / `IS NOT NULL` remain valid.
   - Cover direct calls to the default, Bloom, bitmap, BSI, range bitmap, and
     empty index readers.
   - Cover Bloom indexes containing mixed values, only nulls, and no rows,
     as well as both bitmap index format versions.
   
   ### API and Format
   
   No API signature, storage format, or protocol changes.
   
   Empty `IN` and `NOT IN` lists are now consistently rejected during validation
   and direct file index evaluation.
   
   ### Documentation
   
   Update predicate builder comments to describe empty-list rejection and
   document that successful `FileIndexReader` visits return non-null results.
   
   ### Generative AI tooling
   
   Generated-by: OpenAI Codex (GPT-6)


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

Reply via email to