comphead commented on code in PR #7808:
URL: https://github.com/apache/datafusion-comet/pull/7808#discussion_r4762659816


##########
native/core/src/parquet/parquet_support.rs:
##########
@@ -378,6 +378,14 @@ fn parquet_convert_array_impl(
             let len = array.len();
             spark_cast(ColumnarValue::Array(array), to_type, 
&cast_options)?.into_array(len)
         }
+        // An all-null binary dictionary can have no entries. 
normalized_keys() requires

Review Comment:
   This arm has the same pattern as the arm directly below it, `(Dictionary(_, 
value_type), Utf8)` with `Binary | LargeBinary`, and repeats the `matches!`. 
Checking `dictionary.values().is_empty()` in that arm, before 
`normalized_keys()`, and returning `Ok((new_null_array(to_type, array.len()), 
true))` there gives one arm and one guard next to the call it protects. I did 
not compile this form.



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