Skip to content

Commit 1253bae

Browse files
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

0 commit comments

Comments
 (0)