From be950b0b969aa701cffdb8339d4a808b12f0abf9 Mon Sep 17 00:00:00 2001 From: Igor Markelov Date: Sun, 26 May 2024 20:58:15 +0000 Subject: [PATCH] Add simple functional tests --- .../0_stateless/03164_row_reordering_simple.reference | 5 +++++ tests/queries/0_stateless/03164_row_reordering_simple.sql | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/03164_row_reordering_simple.reference create mode 100644 tests/queries/0_stateless/03164_row_reordering_simple.sql diff --git a/tests/queries/0_stateless/03164_row_reordering_simple.reference b/tests/queries/0_stateless/03164_row_reordering_simple.reference new file mode 100644 index 00000000000..32a3fdf7129 --- /dev/null +++ b/tests/queries/0_stateless/03164_row_reordering_simple.reference @@ -0,0 +1,5 @@ +Egor 1 +Egor 2 +Igor 1 +Igor 2 +Igor 3 diff --git a/tests/queries/0_stateless/03164_row_reordering_simple.sql b/tests/queries/0_stateless/03164_row_reordering_simple.sql new file mode 100644 index 00000000000..8dbf757b875 --- /dev/null +++ b/tests/queries/0_stateless/03164_row_reordering_simple.sql @@ -0,0 +1,3 @@ +CREATE TEMPORARY TABLE test (name String, event Int8) ENGINE = MergeTree ORDER BY (name) SETTINGS allow_experimental_optimized_row_order = True; +INSERT INTO test VALUES ('Igor', 3), ('Egor', 1), ('Egor', 2), ('Igor', 2), ('Igor', 1); +SELECT * FROM test ORDER BY (name) SETTINGS optimize_read_in_order=1;