mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
update tests checking parsing of inserted enum values by numeric enum ids
This commit is contained in:
parent
bffa1ed28c
commit
107d1a2ce5
@ -0,0 +1 @@
|
|||||||
|
102 es
|
@ -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;
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
102 es
|
@ -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;
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
102 es
|
||||||
|
103 ef
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user