ClickHouse/tests/performance/tsv_csv_nullable_parsing.xml
2021-10-27 17:29:36 +03:00

16 lines
688 B
XML

<test>
<create_query>CREATE TABLE IF NOT EXISTS table_tsv (s Nullable(String)) ENGINE = File('TSV')</create_query>
<create_query>CREATE TABLE IF NOT EXISTS table_csv (s Nullable(String)) ENGINE = File('CSV')</create_query>
<fill_query>INSERT INTO table_tsv SELECT number % 2 ? 'Some text' : NULL FROM numbers(1000000) FORMAT TSV</fill_query>
<fill_query>INSERT INTO table_csv SELECT number % 2 ? 'Some text' : NULL FROM numbers(1000000) FORMAT CSV</fill_query>
<query>SELECT * FROM table_tsv FORMAT Null</query>
<query>SELECT * FROM table_csv FORMAT Null</query>
<drop_query>DROP TABLE IF EXISTS table_tsv</drop_query>
<drop_query>DROP TABLE IF EXISTS table_csv</drop_query>
</test>