chengxianglibra opened a new issue, #13092:
URL: https://github.com/apache/iceberg/issues/13092

   ### Apache Iceberg version
   
   1.9.0 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   While reading changelog table with predicates on changelog metadata 
columns(such as _change_type), predicates could be pushed down through 
SparkScanBuilder::pushPredicates, but later expression evaluation would be 
failed due to table schema does not have changelog metadata columns.
   How to reproduce this issue?
   ```
   CREATE TABLE t1 (c1 int, c2 string) USING iceberg;
   INSERT INTO t1 VALUES (1, 'a'), (2, 'b');
   SELECT c1, _changelog_type FROM t1.changes WHERE _change_type = 'DELETE';
   ```
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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