From e9b0beef2bdadb2adb6e47b7bb2accdb922743c2 Mon Sep 17 00:00:00 2001 From: dmitrybugakov Date: Fri, 15 Nov 2024 19:56:37 +0100 Subject: [PATCH] Add test --- datafusion/sqllogictest/test_files/unnest.slt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/datafusion/sqllogictest/test_files/unnest.slt b/datafusion/sqllogictest/test_files/unnest.slt index 8ebed5b25ca9..2e1b8b87cc42 100644 --- a/datafusion/sqllogictest/test_files/unnest.slt +++ b/datafusion/sqllogictest/test_files/unnest.slt @@ -853,3 +853,9 @@ select unnest(u.column5), j.* except(column2, column3) from unnest_table u join 1 2 1 3 4 2 NULL NULL 4 + +## Issue: https://github.com/apache/datafusion/issues/13237 +query I +select count(*) from (select unnest(range(0, 100000)) id) t inner join (select unnest(range(0, 100000)) id) t1 on t.id = t1.id; +---- +100000