mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 21:03:51 +00:00
Add test
This commit is contained in:
parent
cb833a009a
commit
09d4d501dc
13
tests/performance/compact_part_subcolumns.xml
Normal file
13
tests/performance/compact_part_subcolumns.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<test>
|
||||
<settings>
|
||||
<allow_experimental_json_type>1</allow_experimental_json_type>
|
||||
</settings>
|
||||
|
||||
<!-- Looks like the only way to use json in test's queries is to put them to substitution.
|
||||
Otherwise jsons are interpreted as substitutions themselves -->
|
||||
|
||||
<create_query>CREATE TABLE t_json (data JSON) ENGINE = MergeTree ORDER BY tuple() SETTINGS min_rows_for_wide_part=1000000000, min_bytes_for_wide_part=100000000000</create_query>
|
||||
<fill_query>INSERT INTO t_json SELECT toJSONString(map(number % 10, repeat('a', number % 100))) FROM numbers(10000000)</fill_query>
|
||||
<query>SELECT data.k0, data.k1, data.k2, data.k3, data.k4, data.k5, data.k6, data.k7, data.k8, data.k9 FROM t_json FORMAT Null</query>
|
||||
<drop_query>DROP TABLE IF EXISTS t_json</drop_query>
|
||||
</test>
|
Loading…
Reference in New Issue
Block a user