summaryrefslogtreecommitdiffstats
path: root/tests/test_optimizer.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:35:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-07 12:35:01 +0000
commit58c11f70074708344e433080e47621091a6dcd84 (patch)
tree2589166e0e58be4947e07a956d26efa497bccaf2 /tests/test_optimizer.py
parentAdding upstream version 11.4.5. (diff)
downloadsqlglot-58c11f70074708344e433080e47621091a6dcd84.tar.xz
sqlglot-58c11f70074708344e433080e47621091a6dcd84.zip
Adding upstream version 11.5.2.upstream/11.5.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_optimizer.py')
-rw-r--r--tests/test_optimizer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_optimizer.py b/tests/test_optimizer.py
index 597fa6f..d077570 100644
--- a/tests/test_optimizer.py
+++ b/tests/test_optimizer.py
@@ -106,7 +106,6 @@ class TestOptimizer(unittest.TestCase):
):
title = meta.get("title") or f"{i}, {sql}"
dialect = meta.get("dialect")
- execute = execute if meta.get("execute") is None else False
leave_tables_isolated = meta.get("leave_tables_isolated")
func_kwargs = {**kwargs}
@@ -114,7 +113,13 @@ class TestOptimizer(unittest.TestCase):
func_kwargs["leave_tables_isolated"] = string_to_bool(leave_tables_isolated)
future = pool.submit(parse_and_optimize, func, sql, dialect, **func_kwargs)
- results[future] = (sql, title, expected, dialect, execute)
+ results[future] = (
+ sql,
+ title,
+ expected,
+ dialect,
+ execute if meta.get("execute") is None else False,
+ )
for future in as_completed(results):
optimized = future.result()