liurenjie1024 commented on code in PR #1922:
URL: https://github.com/apache/iceberg-rust/pull/1922#discussion_r2610044969


##########
crates/iceberg/src/arrow/record_batch_transformer.rs:
##########
@@ -83,14 +83,10 @@ fn constants_map(
             // Handle both None (null) and Some(Literal::Primitive) cases
             match &partition_data[pos] {
                 None => {
-                    // TODO 
(https://github.com/apache/iceberg-rust/issues/1914): Add support for null 
datum values.
-                    return Err(Error::new(
-                        ErrorKind::Unexpected,
-                        format!(
-                            "Partition field {} has null value for identity 
transform",
-                            field.source_id
-                        ),
-                    ));
+                    // Skip null partition values - they will be resolved as 
null per Iceberg spec rule #4.

Review Comment:
   I got it, it's a little tricky. When it's value is null, it will be resolved 
to null since it's optional. 



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