Skip to content

Commit

Permalink
fix: remove copy (#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
barakalon authored Sep 21, 2023
1 parent 69a2c67 commit 6475b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlglot/optimizer/simplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def simplify_equality(expression: exp.Expression) -> exp.Expression:
return expression

return expression.__class__(
this=a.copy(), expression=INVERSE_OPS[l.__class__](this=r.copy(), expression=b.copy())
this=a, expression=INVERSE_OPS[l.__class__](this=r, expression=b)
)
return expression

Expand Down

0 comments on commit 6475b84

Please sign in to comment.