miomiocat commented on code in PR #1516:
URL: https://github.com/apache/paimon-rust/pull/1516#discussion_r4674905041


##########
crates/paimon/src/arrow/format/orc.rs:
##########
@@ -718,7 +832,9 @@ fn datum_to_orc_value(datum: &Datum, data_type: &DataType) 
-> Option<PredicateVa
         (Datum::Long(value), DataType::BigInt(_)) => 
Some(PredicateValue::Int64(Some(*value))),
         (Datum::Float(value), DataType::Float(_)) => 
Some(PredicateValue::Float32(Some(*value))),
         (Datum::Double(value), DataType::Double(_)) => 
Some(PredicateValue::Float64(Some(*value))),
-        (Datum::String(value), DataType::Char(_) | DataType::VarChar(_)) => {
+        // CHAR values are normalized before residual evaluation; raw padded 
ORC
+        // statistics must not exclude a matching unpadded value.

Review Comment:
   Updated in 5d0df374. ORC CHAR min/max bounds no longer exclude files before 
CHAR padding is removed. A TableScan regression supplies `AB  ` and `CD  ` as 
manifest bounds, filters for `AB`, and checks that the ORC split survives. 
Other file formats retain their existing pruning.



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