summaryrefslogtreecommitdiffstats
path: root/sqlglot/optimizer/eliminate_joins.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:31:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 07:31:50 +0000
commit1fb60a37d31eacbac62ddafde51b829522925694 (patch)
tree5c04a33630f7a2cd4cff248e965053f97ec3e4ac /sqlglot/optimizer/eliminate_joins.py
parentAdding upstream version 11.4.1. (diff)
downloadsqlglot-c703ca34b712703c6eff83923bcbfeadc6c73564.tar.xz
sqlglot-c703ca34b712703c6eff83923bcbfeadc6c73564.zip
Adding upstream version 11.4.5.upstream/11.4.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/optimizer/eliminate_joins.py')
-rw-r--r--sqlglot/optimizer/eliminate_joins.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/sqlglot/optimizer/eliminate_joins.py b/sqlglot/optimizer/eliminate_joins.py
index 8e6a520..e0ddfa2 100644
--- a/sqlglot/optimizer/eliminate_joins.py
+++ b/sqlglot/optimizer/eliminate_joins.py
@@ -1,7 +1,6 @@
from sqlglot import expressions as exp
from sqlglot.optimizer.normalize import normalized
from sqlglot.optimizer.scope import Scope, traverse_scope
-from sqlglot.optimizer.simplify import simplify
def eliminate_joins(expression):
@@ -179,6 +178,4 @@ def join_condition(join):
for condition in conditions:
extract_condition(condition)
- on = simplify(on)
- remaining_condition = None if on == exp.true() else on
- return source_key, join_key, remaining_condition
+ return source_key, join_key, on