update tests checking parsing of inserted enum values by numeric enum ids

This commit is contained in:
Vasily Kozhukhovskiy 2020-10-16 10:52:14 +03:00
parent bffa1ed28c
commit 107d1a2ce5
6 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@ CREATE TABLE table_with_enum_column_for_csv_insert (
SET input_format_csv_enum_as_number = 1; SET input_format_csv_enum_as_number = 1;
INSERT INTO table_with_enum_column_for_csv_insert FORMAT CSV 102,2 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; SET input_format_csv_enum_as_number = 0;

View File

@ -6,5 +6,6 @@ CREATE TABLE table_with_enum_column_for_json_insert (
) ENGINE=Memory(); ) ENGINE=Memory();
INSERT INTO table_with_enum_column_for_json_insert FORMAT JSONEachRow {"Id":102,"Value":2} 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; DROP TABLE IF EXISTS table_with_enum_column_for_json_insert;

View File

@ -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 TSV 102 2
INSERT INTO table_with_enum_column_for_tsv_insert FORMAT TabSeparatedRaw 103 1 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; SET input_format_tsv_enum_as_number = 0;