diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-10-15 13:53:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-10-15 13:53:00 +0000 |
commit | 684905e3de7854a3806ffa55e0d1a09431ba5a19 (patch) | |
tree | 127ebd7d051f15fb8f8cf36cfd04a8a65a4d9680 /tests/test_optimizer.py | |
parent | Releasing debian version 6.3.1-1. (diff) | |
download | sqlglot-684905e3de7854a3806ffa55e0d1a09431ba5a19.tar.xz sqlglot-684905e3de7854a3806ffa55e0d1a09431ba5a19.zip |
Merging upstream version 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.py | 14 |
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, |