summaryrefslogtreecommitdiffstats
path: root/tests/dialects/test_hive.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 05:12:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 05:12:38 +0000
commit613c2506f59fefeb0c0b921ca361c65e99458139 (patch)
treee1207c41ee9b35d77f1608e87e568fe60d701cf6 /tests/dialects/test_hive.py
parentAdding upstream version 18.17.0. (diff)
downloadsqlglot-4f1c426cbe8ebbc69eba0ace3538599d45ac3f10.tar.xz
sqlglot-4f1c426cbe8ebbc69eba0ace3538599d45ac3f10.zip
Adding upstream version 19.0.1.upstream/19.0.1
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.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/dialects/test_hive.py b/tests/dialects/test_hive.py
index 26f0189..ba95442 100644
--- a/tests/dialects/test_hive.py
+++ b/tests/dialects/test_hive.py
@@ -429,6 +429,21 @@ class TestHive(Validator):
self.validate_identity(
"SELECT key, value, GROUPING__ID, COUNT(*) FROM T1 GROUP BY key, value WITH ROLLUP"
)
+
+ self.validate_all(
+ "SET hiveconf:some_var = 5",
+ write={
+ "hive": "SET hiveconf:some_var = 5",
+ "spark": "SET hiveconf:some_var = 5",
+ },
+ )
+ self.validate_all(
+ "SELECT ${hiveconf:some_var}",
+ write={
+ "hive": "SELECT ${hiveconf:some_var}",
+ "spark": "SELECT ${hiveconf:some_var}",
+ },
+ )
self.validate_all(
"SELECT A.1a AS b FROM test_a AS A",
write={