From a151b42edbcee0cb04374019c6263b063f8bc45d Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 26 Dec 2023 07:39:27 -0500 Subject: [PATCH] chore: remove de morgan transformation --- ibis/backends/base/sqlglot/compiler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ibis/backends/base/sqlglot/compiler.py b/ibis/backends/base/sqlglot/compiler.py index 746c972173541..5549f7630360a 100644 --- a/ibis/backends/base/sqlglot/compiler.py +++ b/ibis/backends/base/sqlglot/compiler.py @@ -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