Merging upstream version 21.0.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7d0896f08b
commit
b7d506d9b2
58 changed files with 25616 additions and 25078 deletions
|
@ -980,6 +980,12 @@ FROM READ_CSV('tests/fixtures/optimizer/tpc-h/nation.csv.gz', 'delimiter', '|')
|
|||
|
||||
self.assertEqual(expression.selects[0].type.sql(dialect="bigquery"), "STRUCT<`f` STRING>")
|
||||
|
||||
expression = annotate_types(
|
||||
parse_one("SELECT unnest(t.x) FROM t AS t", dialect="postgres"),
|
||||
schema={"t": {"x": "array<int>"}},
|
||||
)
|
||||
self.assertTrue(expression.selects[0].is_type("int"))
|
||||
|
||||
def test_type_annotation_cache(self):
|
||||
sql = "SELECT 1 + 1"
|
||||
expression = annotate_types(parse_one(sql))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue