Merging upstream version 26.22.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
ecad2ca6a9
commit
3552a78d82
69 changed files with 29194 additions and 28548 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue