From a9f0c66475f8f43c04b43831e31264b677579300 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 12 Mar 2022 22:11:49 +0300 Subject: [PATCH] Revert "Remove "bugs" that do not exist anymore" --- .../02234_position_case_insensitive_utf8.reference | 2 -- .../0_stateless/02234_position_case_insensitive_utf8.sql | 2 -- .../{0_stateless => bugs}/01133_max_result_rows.reference | 0 .../{0_stateless => bugs}/01133_max_result_rows.sql | 0 .../01482_move_to_prewhere_and_cast.reference | 0 .../01482_move_to_prewhere_and_cast.sql | 7 +++++-- tests/queries/bugs/position_case_insensitive_utf8.sql | 2 ++ 7 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 tests/queries/0_stateless/02234_position_case_insensitive_utf8.reference delete mode 100644 tests/queries/0_stateless/02234_position_case_insensitive_utf8.sql rename tests/queries/{0_stateless => bugs}/01133_max_result_rows.reference (100%) rename tests/queries/{0_stateless => bugs}/01133_max_result_rows.sql (100%) rename tests/queries/{0_stateless => bugs}/01482_move_to_prewhere_and_cast.reference (100%) rename tests/queries/{0_stateless => bugs}/01482_move_to_prewhere_and_cast.sql (91%) create mode 100644 tests/queries/bugs/position_case_insensitive_utf8.sql diff --git a/tests/queries/0_stateless/02234_position_case_insensitive_utf8.reference b/tests/queries/0_stateless/02234_position_case_insensitive_utf8.reference deleted file mode 100644 index aa47d0d46d4..00000000000 --- a/tests/queries/0_stateless/02234_position_case_insensitive_utf8.reference +++ /dev/null @@ -1,2 +0,0 @@ -0 -0 diff --git a/tests/queries/0_stateless/02234_position_case_insensitive_utf8.sql b/tests/queries/0_stateless/02234_position_case_insensitive_utf8.sql deleted file mode 100644 index d77b13e7f97..00000000000 --- a/tests/queries/0_stateless/02234_position_case_insensitive_utf8.sql +++ /dev/null @@ -1,2 +0,0 @@ -SELECT positionCaseInsensitiveUTF8('Hello', materialize('%\xF0%')); -SELECT DISTINCT positionCaseInsensitiveUTF8(materialize('Hello'), '%\xF0%') FROM numbers(1000); diff --git a/tests/queries/0_stateless/01133_max_result_rows.reference b/tests/queries/bugs/01133_max_result_rows.reference similarity index 100% rename from tests/queries/0_stateless/01133_max_result_rows.reference rename to tests/queries/bugs/01133_max_result_rows.reference diff --git a/tests/queries/0_stateless/01133_max_result_rows.sql b/tests/queries/bugs/01133_max_result_rows.sql similarity index 100% rename from tests/queries/0_stateless/01133_max_result_rows.sql rename to tests/queries/bugs/01133_max_result_rows.sql diff --git a/tests/queries/0_stateless/01482_move_to_prewhere_and_cast.reference b/tests/queries/bugs/01482_move_to_prewhere_and_cast.reference similarity index 100% rename from tests/queries/0_stateless/01482_move_to_prewhere_and_cast.reference rename to tests/queries/bugs/01482_move_to_prewhere_and_cast.reference diff --git a/tests/queries/0_stateless/01482_move_to_prewhere_and_cast.sql b/tests/queries/bugs/01482_move_to_prewhere_and_cast.sql similarity index 91% rename from tests/queries/0_stateless/01482_move_to_prewhere_and_cast.sql rename to tests/queries/bugs/01482_move_to_prewhere_and_cast.sql index 282363dcdd7..b81cf585b13 100644 --- a/tests/queries/0_stateless/01482_move_to_prewhere_and_cast.sql +++ b/tests/queries/bugs/01482_move_to_prewhere_and_cast.sql @@ -1,3 +1,6 @@ +-- Tags: no-polymorphic-parts +-- Tag no-polymorphic-parts: bug, shoud be fixed + DROP TABLE IF EXISTS APPLICATION; DROP TABLE IF EXISTS DATABASE_IO; @@ -19,9 +22,9 @@ ORDER BY Date; insert into table DATABASE_IO values ('AppA', 'BaseA', '2020-01-01 00:00:00', 1000); SELECT `APPLICATION`.`Name` AS `App`, - CAST(CAST(`DATABASE_IO`.`Date` AS DATE) AS DATE) AS `date` + CAST(CAST(`DATABASE_IO`.`Date` AS DATE) AS DATE) AS `date` FROM `DATABASE_IO` -INNER +INNER JOIN `APPLICATION` ON (`DATABASE_IO`.`Base` = `APPLICATION`.`Base`) WHERE ( CAST(CAST(`DATABASE_IO`.`Date` AS DATE) AS TIMESTAMP) >= toDateTime('2020-01-01 00:00:00') diff --git a/tests/queries/bugs/position_case_insensitive_utf8.sql b/tests/queries/bugs/position_case_insensitive_utf8.sql new file mode 100644 index 00000000000..00ddd1b498d --- /dev/null +++ b/tests/queries/bugs/position_case_insensitive_utf8.sql @@ -0,0 +1,2 @@ +SELECT positionCaseInsensitiveUTF8('Hello', materialize('%\xF0%')); +SELECT positionCaseInsensitiveUTF8(materialize('Hello'), '%\xF0%') FROM numbers(1000);