Skip to content

Commit

Permalink
bump scope limit
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Oct 16, 2024
1 parent 51ed864 commit 3e55907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlglot/optimizer/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

TRAVERSABLES = (exp.Query, exp.DDL, exp.DML)

MAX_SCOPE_DEPTH = 200
MAX_SCOPE_DEPTH = 500


class ScopeType(Enum):
Expand Down Expand Up @@ -478,7 +478,7 @@ def traverse(self):
actual_depth = len(result)
if actual_depth > MAX_SCOPE_DEPTH:
raise OptimizeError(
f"Scope depth limit({actual_depth}) exceeded max depth limit({MAX_SCOPE_DEPTH})"
f"Scope depth limit of {MAX_SCOPE_DEPTH} exceeded"
)

yield from reversed(result)
Expand Down

0 comments on commit 3e55907

Please sign in to comment.