Adding upstream version 23.12.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
efe1f986ea
commit
5d33af745d
93 changed files with 55455 additions and 52777 deletions
|
@ -87,6 +87,9 @@ class TestParser(unittest.TestCase):
|
|||
|
||||
self.assertIsNotNone(parse_one("date").find(exp.Column))
|
||||
|
||||
def test_tuple(self):
|
||||
parse_one("(a,)").assert_is(exp.Tuple)
|
||||
|
||||
def test_structs(self):
|
||||
cast = parse_one("cast(x as struct<int>)")
|
||||
self.assertIsInstance(cast.to.expressions[0], exp.DataType)
|
||||
|
@ -439,7 +442,7 @@ class TestParser(unittest.TestCase):
|
|||
|
||||
self.assertEqual(expression.comments, ["comment2"])
|
||||
self.assertEqual(expression.this.comments, ["comment3"])
|
||||
self.assertEqual(expression.args.get("with").comments, ["comment1.1", "comment1.2"])
|
||||
self.assertEqual(expression.args["with"].comments, ["comment1.1", "comment1.2"])
|
||||
|
||||
def test_type_literals(self):
|
||||
self.assertEqual(parse_one("int 1"), parse_one("CAST(1 AS INT)"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue