summaryrefslogtreecommitdiffstats
path: root/tests/dialects/test_bigquery.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 08:03:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 08:03:55 +0000
commit5510bab2f2724b1785efb5e4be0e4fa1e0afbf9e (patch)
tree8f11dc162604c83298116ce6ac23d64492e2c189 /tests/dialects/test_bigquery.py
parentAdding upstream version 16.7.3. (diff)
downloadsqlglot-5510bab2f2724b1785efb5e4be0e4fa1e0afbf9e.tar.xz
sqlglot-5510bab2f2724b1785efb5e4be0e4fa1e0afbf9e.zip
Adding upstream version 16.7.7.upstream/16.7.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/dialects/test_bigquery.py')
-rw-r--r--tests/dialects/test_bigquery.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/dialects/test_bigquery.py b/tests/dialects/test_bigquery.py
index e95ff3e..e3fc495 100644
--- a/tests/dialects/test_bigquery.py
+++ b/tests/dialects/test_bigquery.py
@@ -29,6 +29,8 @@ class TestBigQuery(Validator):
with self.assertRaises(ParseError):
transpile("SELECT * FROM UNNEST(x) AS x(y)", read="bigquery")
+ self.validate_identity("SELECT ANY_VALUE(fruit HAVING MAX sold) FROM fruits")
+ self.validate_identity("SELECT ANY_VALUE(fruit HAVING MIN sold) FROM fruits")
self.validate_identity("SELECT `project-id`.udfs.func(call.dir)")
self.validate_identity("SELECT CAST(CURRENT_DATE AS STRING FORMAT 'DAY') AS current_day")
self.validate_identity("SAFE_CAST(encrypted_value AS STRING FORMAT 'BASE64')")