QuakeWang opened a new pull request, #25:
URL: https://github.com/apache/paimon-mosaic/pull/25

   ## Problem
   
   `read_table(..., columns=[])` currently skips projection because the Python 
wrapper checks `if columns:`. This makes an explicit empty projection behave 
the same as `columns=None`, so the convenience API returns all columns instead 
of a zero-column table with the row count preserved.
   
   ## Fix
   
   Change the wrapper to call `reader.project(columns)` whenever `columns is 
not None`, preserving the existing three-state projection semantics:
   
   - `None`: read all columns
   - non-empty list: read selected columns
   - empty list: read zero columns and preserve row count
   
   Add a regression test for `read_table(..., columns=[])`.


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