JingsongLi commented on code in PR #1514:
URL: https://github.com/apache/paimon-rust/pull/1514#discussion_r4665261650


##########
crates/paimon/src/arrow/format/orc.rs:
##########
@@ -442,6 +551,9 @@ impl FormatFileReader for OrcFormatReader {
         let map_read_plan = MapShreddingReadPlan::create(&scan_fields, 
&file_schema)?;
         let projected_names: Vec<String> =
             scan_fields.iter().map(|f| f.name().to_string()).collect();
+        // Timestamp comparisons are not pushed into ORC statistics (see
+        // datum_to_orc_value). The exact residual runs on normalized values.

Review Comment:
   [P1] Prevent manifest pruning from using a different time zone than the 
value decoder. Java legacy ORC statistics materialize the bounds in the writer 
JVM's zone. I committed an actual TIMESTAMP_INSTANT ORC file with UTC writer 
bounds. With the reader set to America/New_York, the direct read correctly 
returned 2024-01-15 07:30 for the stored 12:30Z value, but a table scan 
filtering for 07:30 planned zero splits. Stripe pushdown is already disabled 
for this column. File-level pruning also needs bounds in the reader's zone or a 
safe fallback for legacy ORC LTZ predicates.



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