summaryrefslogtreecommitdiffstats
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-04 12:14:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-04 12:14:45 +0000
commita34653eb21369376f0e054dd989311afcb167f5b (patch)
tree5a0280adce195af0be654f79fd99395fd2932c19 /tests/test_parser.py
parentReleasing debian version 18.7.0-1. (diff)
downloadsqlglot-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.py25
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)