-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support FixedSizeList
in array methods
#6560
Comments
We should do coercion in |
Yes, that is the preferred location (as it happens before any optimization passes) -- the reason is that type coercion can change the semantics of the plan, but the optimizer passes should not https://docs.rs/datafusion/latest/datafusion/index.html#planning has more information |
My first thought is to add casting from However, I fail to construct a test. |
Since https://docs.rs/datafusion/latest/datafusion/scalar/enum.ScalarValue.html#variant.List |
I wonder if a reasonable approach would be to start with the code to cast to/from So like SELECT
arrow_cast(my_column, 'List(Utf8)') -- would call the `cast` kernel to convert `my_column` to `LIstArray`
FROM
my_parquet_table_with_fixed_size_lists |
I think we have support FixedSizeList already. Thanks for @Weijun-H |
Is your feature request related to a problem or challenge?
Follow on to #6384
Data can come from different sources (such as
apache-avro
,parquet
...) where the list data type is supported, which can becomeFixedSizeList
inarrow-datafusion
. So as not to cause difficulties regarding the casting betweenFixedSizeList
andList
, I suggest to supportFixedSizeList
in all array functions.Describe the solution you'd like
Pre casting
FixedSizeList
toList
before calling array functions or native support for that data type.Describe alternatives you've considered
No response
Additional context
Simillar Issues:
#6119
#6075
The text was updated successfully, but these errors were encountered: