sunchao commented on code in PR #7808:
URL: https://github.com/apache/datafusion-comet/pull/7808#discussion_r4793782125
##########
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:
Thanks, I moved the [empty-dictionary
check](https://github.com/apache/datafusion-comet/blob/3f90d73e9bb0258da33521c728f124111ec843fe/native/core/src/parquet/parquet_support.rs#L397-L402)
into the existing conversion arm and removed the duplicate type match. The
guard returns null strings and marks the field present so the parent struct
stays valid. With #7718 merged, `normalized_keys()` only runs on offset
overflow.
--
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]