summaryrefslogtreecommitdiffstats
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-04 12:14:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-04 12:14:40 +0000
commitd7f0758e21b5111b5327f3839c5c9f49a04d272b (patch)
treea425f4ebcc159d6bd9443fe4e0e2f9eb20151027 /tests/test_parser.py
parentAdding upstream version 18.7.0. (diff)
downloadsqlglot-d7f0758e21b5111b5327f3839c5c9f49a04d272b.tar.xz
sqlglot-d7f0758e21b5111b5327f3839c5c9f49a04d272b.zip
Adding upstream version 18.11.2.upstream/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)