Skip to content

Commit

Permalink
chore: remove de morgan transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Dec 26, 2023
1 parent 9b4c739 commit a151b42
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ibis/backends/base/sqlglot/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,7 @@ def visit_Negate(self, op, *, arg):
@visit_node.register(ops.Not)
def visit_Not(self, op, *, arg):
if isinstance(arg, sge.Filter):
return sge.Filter(
this=self._de_morgan_law(arg.this), expression=arg.expression
) # transform the not expression using _de_morgan_law
return sge.Filter(this=arg.this, expression=arg.expression)
return sg.not_(paren(arg))

@staticmethod
Expand Down

0 comments on commit a151b42

Please sign in to comment.