scovich commented on code in PR #7871: URL: https://github.com/apache/arrow-rs/pull/7871#discussion_r2187147699
########## parquet-variant/src/variant.rs: ########## @@ -382,21 +385,23 @@ impl<'m, 'v> Variant<'m, 'v> { VariantBasicType::ShortString => { Variant::ShortString(decoder::decode_short_string(value_metadata, value_data)?) } - VariantBasicType::Object => { - Variant::Object(VariantObject::try_new_impl(metadata, value)?) - } - VariantBasicType::Array => Variant::List(VariantList::try_new_impl(metadata, value)?), + VariantBasicType::Object => Variant::Object( + VariantObject::try_new_with_shallow_validation(metadata, value)?, + ), + VariantBasicType::Array => Variant::List(VariantList::try_new_with_shallow_validation( + metadata, value, Review Comment: aside: I don't think fmt usually likes multiple args on a single line? (I sure sometimes _wish_ it did, applying the same rules for splitting that it does for any other complex "expression", i.e. too much nesting or more than ~80 chars would cause line splits) -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org