This commit is contained in:
avogar 2024-11-25 19:08:08 +00:00
parent cb833a009a
commit 09d4d501dc

View 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>