diff --git a/dbms/tests/queries/0_stateless/00110_external_sort.reference b/dbms/tests/queries/0_stateless/00110_external_sort.reference new file mode 100644 index 00000000000..1ceebce4e18 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00110_external_sort.reference @@ -0,0 +1,10 @@ +7040546 +4327029 +1613512 +8947307 +6233790 +3520273 +806756 +8140551 +5427034 +2713517 diff --git a/dbms/tests/queries/0_stateless/00110_external_sort.sql b/dbms/tests/queries/0_stateless/00110_external_sort.sql new file mode 100644 index 00000000000..6f56de66e3b --- /dev/null +++ b/dbms/tests/queries/0_stateless/00110_external_sort.sql @@ -0,0 +1,3 @@ +SET max_memory_usage = 100000000; +SET max_bytes_before_external_sort = 10000000; +SELECT number FROM (SELECT number FROM system.numbers LIMIT 10000000) ORDER BY number * 1234567890123456789 LIMIT 9999990, 10;