From 107d1a2ce5c2b91a1601c4aac2a9a60511422d7f Mon Sep 17 00:00:00 2001 From: Vasily Kozhukhovskiy Date: Fri, 16 Oct 2020 10:52:14 +0300 Subject: [PATCH] update tests checking parsing of inserted enum values by numeric enum ids --- .../01514_input_format_csv_enum_as_number_setting.reference | 1 + .../01514_input_format_csv_enum_as_number_setting.sql | 1 + .../01514_input_format_json_enum_as_number.reference | 1 + .../0_stateless/01514_input_format_json_enum_as_number.sql | 1 + .../01514_input_format_tsv_enum_as_number_setting.reference | 2 ++ .../01514_input_format_tsv_enum_as_number_setting.sql | 1 + 6 files changed, 7 insertions(+) diff --git a/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.reference b/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.reference index e69de29bb2d..6b67bbaaf74 100644 --- a/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.reference +++ b/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.reference @@ -0,0 +1 @@ +102 es diff --git a/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.sql b/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.sql index f4f2b278ac3..526af60434f 100644 --- a/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.sql +++ b/tests/queries/0_stateless/01514_input_format_csv_enum_as_number_setting.sql @@ -8,6 +8,7 @@ CREATE TABLE table_with_enum_column_for_csv_insert ( SET input_format_csv_enum_as_number = 1; INSERT INTO table_with_enum_column_for_csv_insert FORMAT CSV 102,2 +SELECT * FROM table_with_enum_column_for_csv_insert; SET input_format_csv_enum_as_number = 0; diff --git a/tests/queries/0_stateless/01514_input_format_json_enum_as_number.reference b/tests/queries/0_stateless/01514_input_format_json_enum_as_number.reference index e69de29bb2d..6b67bbaaf74 100644 --- a/tests/queries/0_stateless/01514_input_format_json_enum_as_number.reference +++ b/tests/queries/0_stateless/01514_input_format_json_enum_as_number.reference @@ -0,0 +1 @@ +102 es diff --git a/tests/queries/0_stateless/01514_input_format_json_enum_as_number.sql b/tests/queries/0_stateless/01514_input_format_json_enum_as_number.sql index a07cf87e11d..8d55a257c47 100644 --- a/tests/queries/0_stateless/01514_input_format_json_enum_as_number.sql +++ b/tests/queries/0_stateless/01514_input_format_json_enum_as_number.sql @@ -6,5 +6,6 @@ CREATE TABLE table_with_enum_column_for_json_insert ( ) ENGINE=Memory(); INSERT INTO table_with_enum_column_for_json_insert FORMAT JSONEachRow {"Id":102,"Value":2} +SELECT * FROM table_with_enum_column_for_json_insert; DROP TABLE IF EXISTS table_with_enum_column_for_json_insert; diff --git a/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.reference b/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.reference index e69de29bb2d..2ff52a8eabf 100644 --- a/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.reference +++ b/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.reference @@ -0,0 +1,2 @@ +102 es +103 ef diff --git a/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.sql b/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.sql index c1f0ba9167e..a002925c6dc 100644 --- a/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.sql +++ b/tests/queries/0_stateless/01514_input_format_tsv_enum_as_number_setting.sql @@ -9,6 +9,7 @@ SET input_format_tsv_enum_as_number = 1; INSERT INTO table_with_enum_column_for_tsv_insert FORMAT TSV 102 2 INSERT INTO table_with_enum_column_for_tsv_insert FORMAT TabSeparatedRaw 103 1 +SELECT * FROM table_with_enum_column_for_tsv_insert; SET input_format_tsv_enum_as_number = 0;