hsiang-c commented on code in PR #2695:
URL: https://github.com/apache/iceberg-rust/pull/2695#discussion_r3502441621


##########
crates/iceberg/src/arrow/reader/pipeline.rs:
##########
@@ -248,6 +250,16 @@ impl FileScanTaskReader {
                 
record_batch_transformer_builder.with_constant(RESERVED_FIELD_ID_FILE, 
file_datum);
         }
 
+        if task
+            .project_field_ids()
+            .contains(&RESERVED_FIELD_ID_SPEC_ID)
+            && let Some(partition_spec) = &task.partition_spec

Review Comment:
   @mbutrovich Thanks for the suggestion, I think it makes sense and I have a 
`test_select_with_spec_id_column_from_unpartitioned_table` for this case.



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