diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-31 07:55:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-31 07:55:38 +0000 |
commit | 139b61d941836298794fcbeb179dc49c43d3fd95 (patch) | |
tree | 5b978af9eb7d9a506a5f73b33b44dde7e9188fcb /tests/test_expressions.py | |
parent | Adding upstream version 25.7.1. (diff) | |
download | sqlglot-139b61d941836298794fcbeb179dc49c43d3fd95.tar.xz sqlglot-139b61d941836298794fcbeb179dc49c43d3fd95.zip |
Adding upstream version 25.8.1.upstream/25.8.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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(") |