You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current array() function in datafusion creates a FixedSizeList arrow array. However, the FixedSizedList in arrow is more general as it allows the elements to be any type
Datafusion currently doesn't coerce the types to a common type
Describe the bug
Both Spark and Postgres allow arrays of elements that have the same type -- e.g. Spark: https://spark.apache.org/docs/2.1.0/api/java/index.html?org/apache/spark/sql/types/ArrayType.html
The current
array()
function in datafusion creates aFixedSizeList
arrow array. However, theFixedSizedList
in arrow is more general as it allows the elements to be any typeDatafusion currently doesn't coerce the types to a common type
To Reproduce
Expected behavior
An error, like in postgres:
Additional context
Found while working on #3122
The
array
function was originally introduced by @jorgecarleitao in https://github.com/apache/arrow/pull/8102/filesThe text was updated successfully, but these errors were encountered: