Skip to content
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

Restrict the max depth of plan tree in optimizer to avoid stack overflow #4982

Closed
yixinglu opened this issue Dec 4, 2022 · 0 comments · Fixed by #5050
Closed

Restrict the max depth of plan tree in optimizer to avoid stack overflow #4982

yixinglu opened this issue Dec 4, 2022 · 0 comments · Fixed by #5050
Assignees
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@yixinglu
Copy link
Contributor

yixinglu commented Dec 4, 2022

Introduction

sometimes there is a too long query for optimizer to handle. because the optimizer of nebula use recursive functions to find the best plan currently, this maybe cause the stack overflow crash.

It's better to restrict the max depth of execution plan and response error if the plan tree exceed the threshold value.

The long queries are often generated by some applications and that means the queries need some manual optimizations.

Contents

Related work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant