diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-04 12:14:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-04 12:14:45 +0000 |
commit | a34653eb21369376f0e054dd989311afcb167f5b (patch) | |
tree | 5a0280adce195af0be654f79fd99395fd2932c19 /tests/test_parser.py | |
parent | Releasing debian version 18.7.0-1. (diff) | |
download | sqlglot-a34653eb21369376f0e054dd989311afcb167f5b.tar.xz sqlglot-a34653eb21369376f0e054dd989311afcb167f5b.zip |
Merging upstream version 18.11.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r-- | tests/test_parser.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index 74463fd..53e1a85 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -690,6 +690,31 @@ class TestParser(unittest.TestCase): LEFT JOIN b ON a.id = b.id """ ) + + self.assertIsNotNone(query) + + query = parse_one( + """ + SELECT * + FROM a + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + LEFT JOIN UNNEST(ARRAY[]) + """ + ) + self.assertIsNotNone(query) self.assertLessEqual(time.time() - now, 0.2) |