1
0
Fork 0

Merging upstream version 26.22.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-29 07:21:12 +02:00
parent ecad2ca6a9
commit 3552a78d82
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
69 changed files with 29194 additions and 28548 deletions

View file

@ -177,6 +177,10 @@ class TestBigQuery(Validator):
self.validate_identity(
"CREATE OR REPLACE VIEW test (tenant_id OPTIONS (description='Test description on table creation')) AS SELECT 1 AS tenant_id, 1 AS customer_id",
)
self.validate_identity(
"--c\nARRAY_AGG(v IGNORE NULLS)",
"ARRAY_AGG(v IGNORE NULLS) /* c */",
)
self.validate_identity(
'SELECT r"\\t"',
"SELECT '\\\\t'",
@ -1732,6 +1736,9 @@ WHERE
)
def test_errors(self):
with self.assertRaises(ParseError):
self.parse_one("SELECT * FROM a - b.c.d2")
with self.assertRaises(TokenError):
transpile("'\\'", read="bigquery")