hcrosse commented on code in PR #3830:
URL: https://github.com/apache/iceberg-rust/pull/3830#discussion_r4813558145


##########
crates/iceberg/src/arrow/reader/projection.rs:
##########
@@ -82,8 +82,10 @@ impl ArrowReader {
         ) -> bool {
             match (file_type, projected_type) {
                 (Some(lhs), Some(rhs)) if lhs == rhs => true,
+                (Some(PrimitiveType::Unknown), Some(_)) => true,
                 (Some(PrimitiveType::Int), Some(PrimitiveType::Long)) => true,
                 (Some(PrimitiveType::Float), Some(PrimitiveType::Double)) => 
true,
+                (Some(PrimitiveType::Date), Some(PrimitiveType::Timestamp)) => 
true,

Review Comment:
   Keeping date to microsecond timestamp promotion allowed here is required for 
an existing promoted-predicate row-filter test on `main` that previously passed 
via the single-column `ProjectionMask::all()` fallback, and all standard 
calendar dates fit microsecond timestamps without overflow. Switching the 
transformer cast in `record_batch_transformer.rs` to checked casts with 
`DataInvalid` overflow errors is already handled in #3623, so I kept that file 
out of this PR to avoid overlapping it.



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