Skip to content

Commit 1dc501b

Browse files
committed
Chore!: remove max_depth argument in simplify as it is now dead code
1 parent 890b24a commit 1dc501b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sqlglot/optimizer/simplify.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def simplify(
4040
expression: exp.Expression,
4141
constant_propagation: bool = False,
4242
dialect: DialectType = None,
43-
max_depth: t.Optional[int] = None,
4443
):
4544
"""
4645
Rewrite sqlglot AST to simplify expressions.
@@ -54,7 +53,6 @@ def simplify(
5453
Args:
5554
expression: expression to simplify
5655
constant_propagation: whether the constant propagation rule should be used
57-
max_depth: Chains of Connectors (AND, OR, etc) exceeding `max_depth` will be skipped
5856
Returns:
5957
sqlglot.Expression: simplified expression
6058
"""

0 commit comments

Comments
 (0)