diff options
Diffstat (limited to 'tests/test_expressions.py')
-rw-r--r-- | tests/test_expressions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_expressions.py b/tests/test_expressions.py index 9ac2110..37a9720 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -1001,6 +1001,8 @@ FROM foo""", self.assertEqual(exp.DataType.build("ARRAY<UNKNOWN>").sql(), "ARRAY<UNKNOWN>") self.assertEqual(exp.DataType.build("ARRAY<NULL>").sql(), "ARRAY<NULL>") self.assertEqual(exp.DataType.build("varchar(100) collate 'en-ci'").sql(), "VARCHAR(100)") + self.assertEqual(exp.DataType.build("int[3]").sql(dialect="duckdb"), "INT[3]") + self.assertEqual(exp.DataType.build("int[3][3]").sql(dialect="duckdb"), "INT[3][3]") with self.assertRaises(ParseError): exp.DataType.build("varchar(") |