Commit 1253bae
committed
physical-expr-adapter: support casting structs nested inside complex types
Previously, DefaultPhysicalExprAdapterRewriter.create_cast_column_expr would
only allow struct evolution for top-level structs. However, it is valid to
have structs that are nested inside other complex types (e.g.
Dictionary<_, Struct>, List<Struct>). These cases would previously return an
error although they were valid.
This commit handles Structs that are arbitrarily nested within certain complex
types (Lists, ListViews, and Dicts). Other complex types can be supported in
the future, but I think this is good enough for now.
Signed-off-by: Alfonso Subiotto Marques <alfonso.subiotto@polarsignals.com>1 parent 8d9b080 commit 1253bae
5 files changed
Lines changed: 386 additions & 94 deletions
File tree
- datafusion
- common/src
- scalar
- expr-common/src
- physical-expr-adapter/src
- physical-expr/src/expressions
0 commit comments