-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stacker and recursive #13310
Add stacker and recursive #13310
Changes from 4 commits
4baea8f
c42668b
547683a
22e4de2
534acb9
cd57de9
5659520
17319c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,12 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> { | |
self.select_into(plan, select_into) | ||
} | ||
other => { | ||
// TODO: check why set_expr_to_plan or the functions it calls need bigger | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @peter-toth lets create a ticket instead of todo so someone from community can pick this up There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAIK think this is something we want to resolve within this PR, if this approach is going to be taken There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would rather create a separate ticket for this investigation as the stack size requirement of the call tree below this point is not because of this PR. Actually, the stak size requirement might be completely normal. Or it can also be a sign of an oportunity for improvement. I will be offline for a few days, but will raise a ticket once I'm back. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The following is the output of Since we annotated
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed the comment in 17319c2 |
||
// minimum stack | ||
let min_stack_size = recursive::get_minimum_stack_size(); | ||
recursive::set_minimum_stack_size(256 * 1024); | ||
let plan = self.set_expr_to_plan(other, planner_context)?; | ||
recursive::set_minimum_stack_size(min_stack_size); | ||
let oby_exprs = to_order_by_exprs(query.order_by)?; | ||
let order_by_rex = self.order_by_to_sort_expr( | ||
oby_exprs, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should be able to remove the note in
sql_array_literal
about stack overflowThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, removed in 5659520.