sankarreddy-atlan commented on code in PR #3537:
URL: https://github.com/apache/iceberg-rust/pull/3537#discussion_r4784549354


##########
crates/iceberg/src/writer/file_writer/parquet_writer.rs:
##########
@@ -371,29 +385,44 @@ impl MinMaxColAggregator {
             ));
         };
 
-        if value.min_is_exact() {
-            let Some(min_datum) = get_parquet_stat_min_as_datum(&ty, value)? 
else {
-                return Err(Error::new(
-                    ErrorKind::Unexpected,
-                    format!("Statistics {value} is not match with field type 
{ty}."),
-                ));
+        // A truncated string or binary min is a prefix of the min, and a
+        // truncated max is a prefix with its last character incremented, so
+        // both are still bounds. A truncated fixed value has the wrong length.
+        let truncated_is_bound = matches!(ty, PrimitiveType::String | 
PrimitiveType::Binary);
+
+        if value.min_bytes_opt().is_some() {

Review Comment:
   fixed



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