New logical plan for unnest struct type #10385
-
I'm implementing unnest for struct type column. For now we only support unnest for list type in this executor wdyt |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
What is the alternative to a new LogicalPlan? Potentially add a new field to https://docs.rs/datafusion/latest/datafusion/logical_expr/struct.Unnest.html ?
Given this explanation, I wonder is there some reason we couldn't make |
Beta Was this translation helpful? Give feedback.
-
I don't see why we need to change anything in the logical plan for this -- any logical plan analyzer can already be fully aware of this difference by simply looking at the type of the |
Beta Was this translation helpful? Give feedback.
I think we can map different function name to one node if they are doing the same thing but just with different name
Agree, we just need to check the type, I don't think the difference is large enough that we need another node to differentiate them
I think we can start with
UnnestStructExec
first (or even extend onUnnestExec
if possible), and then introduce another logical node if we found practical use-case.