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
Is your feature request related to a problem or challenge?
Some of the complex queries #9373, #9375, or like tpcd_64 etc. are facing stack overflow issues.
Through debugging, it appears that the root cause of these stack overflow problems lies in the create_initial_plan function, specifically due to its recursive implementation.
Describe the solution you'd like
I am not sure how to do it, however, create_initial_plan can be rewritten to remove recursive calls.
Describe alternatives you've considered
NA
Additional context
NA
The text was updated successfully, but these errors were encountered:
It seems like this is a special case where join could be mutated before it is then transformed into its physical form, which doesn't sit right with what I'm attempting, and I feel doesn't sit right with the rest of the logic happening in the existing function.
I wonder if we should work on extracting this out first (maybe to the optimizer?) before then proceeding with a refactor of create_initial_plan 🤔
This way create_initial_plan can assume the passed in LogicalPlan is final and simply needs conversion to physical form, and not need to deal with mutating the input plan any more than is required for this 1-1 conversion 🤔
Edit: btw, both issues linked in the body don't seem to fail in create_initial_plan but actually fails in SQL planning for #9375 and analysis for #9373
Edit2: I managed to get around the roadblock, but it is kinda ugly and probably still worth some consideration, in order to keep create_initial_plan simpler
Is your feature request related to a problem or challenge?
Some of the complex queries #9373, #9375, or like tpcd_64 etc. are facing stack overflow issues.
Through debugging, it appears that the root cause of these stack overflow problems lies in the
create_initial_plan
function, specifically due to its recursive implementation.Describe the solution you'd like
I am not sure how to do it, however,
create_initial_plan
can be rewritten to remove recursive calls.Describe alternatives you've considered
NA
Additional context
NA
The text was updated successfully, but these errors were encountered: