sdf-jkl commented on code in PR #9599:
URL: https://github.com/apache/arrow-rs/pull/9599#discussion_r2996982851


##########
parquet-variant-compute/src/variant_to_arrow.rs:
##########
@@ -545,6 +559,9 @@ impl<'a> StructVariantToArrowRowBuilder<'a> {
     }
 
     fn append_value(&mut self, value: &Variant<'_, '_>) -> Result<bool> {
+        if append_null_if_variant_null(value, || self.append_null())? {
+            return Ok(false);
+        }
         let Variant::Object(obj) = value else {
             if self.cast_options.safe {

Review Comment:
   It's much cleaner, thanks!



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