summaryrefslogtreecommitdiffstats
path: root/tests/dialects/test_hive.py
diff options
context:
space:
mode:
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={