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


##########
parquet-variant-compute/src/variant_to_arrow.rs:
##########
@@ -941,7 +942,14 @@ where
         match value {
             Variant::List(list) => {
                 for element in list.iter() {
-                    self.element_builder.append_value(element)?;
+                    match element {

Review Comment:
   I added a test showing an error with using just `Variant::Null`.
   
   If we use `variant_get(..., List<Int64>)` and cast_options(safe: False) // 
strict casting, appended `Variant::Null` can't be safely cast to the `List`'s 
inner type causing an Err.
   
   By using `append_null` we avoid this error.



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