You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "QuakeWang (via GitHub)" <gi...@apache.org> on 2026/05/21 03:55:59 UTC
[PR] fix: preserve empty projection in read_table [paimon-mosaic]
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix: preserve empty projection in read_table [paimon-mosaic]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #25:
URL: https://github.com/apache/paimon-mosaic/pull/25
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org