summaryrefslogtreecommitdiffstats
path: root/tests/test_optimizer.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-15 13:52:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-10-15 13:52:53 +0000
commit97d3673ec2d668050912aa6aea1816885ca6c5ab (patch)
treef391e30e039a3d22368e9696e171f759e104c765 /tests/test_optimizer.py
parentAdding upstream version 6.3.1. (diff)
downloadsqlglot-97d3673ec2d668050912aa6aea1816885ca6c5ab.tar.xz
sqlglot-97d3673ec2d668050912aa6aea1816885ca6c5ab.zip
Adding upstream version 7.1.3.upstream/7.1.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_optimizer.py')
-rw-r--r--tests/test_optimizer.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_optimizer.py b/tests/test_optimizer.py
index 36a7785..a67e9db 100644
--- a/tests/test_optimizer.py
+++ b/tests/test_optimizer.py
@@ -191,6 +191,20 @@ class TestOptimizer(unittest.TestCase):
optimizer.optimize_joins.optimize_joins,
)
+ def test_eliminate_joins(self):
+ self.check_file(
+ "eliminate_joins",
+ optimizer.eliminate_joins.eliminate_joins,
+ pretty=True,
+ )
+
+ def test_eliminate_ctes(self):
+ self.check_file(
+ "eliminate_ctes",
+ optimizer.eliminate_ctes.eliminate_ctes,
+ pretty=True,
+ )
+
def test_merge_subqueries(self):
optimize = partial(
optimizer.optimize,