yusufyildiz34 opened a new pull request, #18580:
URL: https://github.com/apache/iceberg/pull/18580

   `ParquetFilters` converts Iceberg filters for the parquet-mr read path 
(`Parquet.read()` without a reader function). For boolean columns it only 
handled `EQ`/`NOT_EQ`, and those failed because `getParquetPrimitive` did not 
accept `Boolean` literals; `IS_NULL`/`NOT_NULL` were not handled at all. Any of 
these predicates made the read fail with `UnsupportedOperationException` before 
returning rows. This passes `Boolean` literals through like numbers and maps 
`IS_NULL`/`NOT_NULL` to Parquet null comparisons, as the other column types do. 
It continues #17093, which the stale bot closed without review; the null 
predicates are new here.
   
   Closes #17092
   
   Test plan: four `TestParquet` cases read a file with a boolean column using 
`equal`, `notEqual`, `isNull` and `notNull` filters; all fail on main and pass 
with this change.
   
   ---
   **AI Disclosure**
   - Model: Claude Opus 5.5
   - Platform/Tool: Claude Code
   - Human Oversight: fully reviewed
   - Prompt Summary: Investigate #17092, reproduce it with failing TestParquet 
cases, and fix boolean predicate conversion in ParquetFilters.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to