Replies: 2 comments
-
I do not think this is anything to do with you. In general I think DataFusion's support for nested / structured types could be much better -- we have started collecting the ideas here: #2326
I think we should can/should add support for this type in |
Beta Was this translation helpful? Give feedback.
-
|
I think make_array now returns ListArray which is easier to work with: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I admit this might be due to my "noobness", but dealing with
FixedSizeListin DataFusion has proven to be difficult and I was wondering maybe I could get some insight that would make it more productive.Basically I am having to deal with
FixedSizeListbecause I am making use of DataFusion'smake_array, which returns aFixedSizeListbut there are a couple of issues i have ran into that makes it cumbersome.First, I can't use functions like
array_to_json_arrayorrecord_batches_to_json_rowsbecauseFixedSizeListis not supported by arrow_json. I created an issue for this here apache/arrow-rs#4248Second, I cannot use
arrow_castto cast it asarrow_castalso currently does not supportFixedSizeListThird I am not sure how to define a varadic UDF that takes a
FixedSizeList.ScalarUDF::newexpectsSignatureand for variadic UDF, I can create a value usingSignature::variadic(vec![DataType::Utf8, DataType::UInt8], Volatility::Immutable)but if I want to includeFixedSizeList, I am not sure how to do this.The type definition of
DataType::FixedSizeListiswhere
FieldRefispub type FieldRef = Arc<Field>;andFieldisNow at the point of creating
DataType::FixedSizeListas needed bySignature::variadicI am not sure how to set the argument it requires.In general I have been stumped by
FixedSizeListin so many places where it is either not supported by the greater eco-system or where how to work with it feel cumbersome or not that obvious.Any advice that can help here? Is there a way to wield
FixedSizeListso it does not feel this difficult to work with?Beta Was this translation helpful? Give feedback.
All reactions