swanandx commented on code in PR #3683:
URL: https://github.com/apache/iceberg-rust/pull/3683#discussion_r4703727938
##########
crates/iceberg/src/arrow/schema.rs:
##########
@@ -158,13 +156,22 @@ pub(crate) fn validate_unshredded_variant(field: &Field,
variant_field_id: i32)
));
}
Some(_) => {}
+ // The shredding spec lets a writer omit `value` if `typed_value`
holds all values.
+ None if shredded && name == "value" => {}
Review Comment:
added test_read_shredded_variant_without_value and
test_read_shredded_variant_as_map_value.
--
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]