summaryrefslogtreecommitdiffstats
path: root/tests/dialects/test_hive.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-08 07:22:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-08 07:22:12 +0000
commit243d9a15edd910136313a7a9fa7d7f24b494e169 (patch)
tree22d768ca708dc5caa8230705a9155ba1a343502b /tests/dialects/test_hive.py
parentAdding upstream version 11.3.0. (diff)
downloadsqlglot-243d9a15edd910136313a7a9fa7d7f24b494e169.tar.xz
sqlglot-243d9a15edd910136313a7a9fa7d7f24b494e169.zip
Adding upstream version 11.3.3.upstream/11.3.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/dialects/test_hive.py')
-rw-r--r--tests/dialects/test_hive.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/dialects/test_hive.py b/tests/dialects/test_hive.py
index a067764..8484805 100644
--- a/tests/dialects/test_hive.py
+++ b/tests/dialects/test_hive.py
@@ -482,9 +482,9 @@ class TestHive(Validator):
self.validate_all(
"SELECT * FROM x TABLESAMPLE(10) y",
write={
- "presto": "SELECT * FROM x AS y TABLESAMPLE(10)",
- "hive": "SELECT * FROM x TABLESAMPLE(10) AS y",
- "spark": "SELECT * FROM x TABLESAMPLE(10) AS y",
+ "presto": "SELECT * FROM x AS y TABLESAMPLE (10)",
+ "hive": "SELECT * FROM x TABLESAMPLE (10) AS y",
+ "spark": "SELECT * FROM x TABLESAMPLE (10) AS y",
},
)
self.validate_all(
@@ -626,25 +626,25 @@ class TestHive(Validator):
},
)
self.validate_all(
- "SELECT * FROM x TABLESAMPLE(1) AS foo",
+ "SELECT * FROM x TABLESAMPLE (1) AS foo",
read={
- "presto": "SELECT * FROM x AS foo TABLESAMPLE(1)",
+ "presto": "SELECT * FROM x AS foo TABLESAMPLE (1)",
},
write={
- "presto": "SELECT * FROM x AS foo TABLESAMPLE(1)",
- "hive": "SELECT * FROM x TABLESAMPLE(1) AS foo",
- "spark": "SELECT * FROM x TABLESAMPLE(1) AS foo",
+ "presto": "SELECT * FROM x AS foo TABLESAMPLE (1)",
+ "hive": "SELECT * FROM x TABLESAMPLE (1) AS foo",
+ "spark": "SELECT * FROM x TABLESAMPLE (1) AS foo",
},
)
self.validate_all(
- "SELECT * FROM x TABLESAMPLE(1) AS foo",
+ "SELECT * FROM x TABLESAMPLE (1) AS foo",
read={
- "presto": "SELECT * FROM x AS foo TABLESAMPLE(1)",
+ "presto": "SELECT * FROM x AS foo TABLESAMPLE (1)",
},
write={
- "presto": "SELECT * FROM x AS foo TABLESAMPLE(1)",
- "hive": "SELECT * FROM x TABLESAMPLE(1) AS foo",
- "spark": "SELECT * FROM x TABLESAMPLE(1) AS foo",
+ "presto": "SELECT * FROM x AS foo TABLESAMPLE (1)",
+ "hive": "SELECT * FROM x TABLESAMPLE (1) AS foo",
+ "spark": "SELECT * FROM x TABLESAMPLE (1) AS foo",
},
)
self.validate_all(