mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fix tests
This commit is contained in:
parent
dda32963fd
commit
a1a571c45e
@ -1,6 +1,7 @@
|
||||
-- Tags: no-fasttest
|
||||
|
||||
SET allow_experimental_json_type = 1;
|
||||
SET allow_suspicious_types_in_order_by = 1;
|
||||
|
||||
DROP TABLE IF EXISTS t_json_10;
|
||||
CREATE TABLE t_json_10 (o JSON) ENGINE = Memory;
|
||||
|
@ -57,8 +57,8 @@ $CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(obj)) as
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(arrayJoin(obj.key_1[]))) as path FROM t_json_11 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(arrayJoin(arrayJoin(obj.key_1[].key_3[])))) as path FROM t_json_11 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(arrayJoin(arrayJoin(arrayJoin(obj.key_1[].key_3[].key_4[]))))) as path FROM t_json_11 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj FROM t_json_11 ORDER BY obj.id FORMAT JSONEachRow"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj.key_1[].key_3 FROM t_json_11 ORDER BY obj.id FORMAT JSONEachRow"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj.key_1[].key_3[].key_4[].key_5, obj.key_1[].key_3[].key_7 FROM t_json_11 ORDER BY obj.id"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj FROM t_json_11 ORDER BY obj.id FORMAT JSONEachRow" --allow_suspicious_types_in_order_by 1
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj.key_1[].key_3 FROM t_json_11 ORDER BY obj.id FORMAT JSONEachRow" --allow_suspicious_types_in_order_by 1
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj.key_1[].key_3[].key_4[].key_5, obj.key_1[].key_3[].key_7 FROM t_json_11 ORDER BY obj.id" --allow_suspicious_types_in_order_by 1
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE t_json_11;"
|
||||
|
@ -49,6 +49,6 @@ $CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(arrayJoin
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(arrayJoin(arrayJoin(arrayJoin(obj.key_0[].key_1[].key_3[]))))) as path FROM t_json_12 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj FROM t_json_12 ORDER BY obj.id FORMAT JSONEachRow" --output_format_json_named_tuples_as_objects 1
|
||||
$CLICKHOUSE_CLIENT -q "SELECT obj.key_0[].key_1[].key_3[].key_4, obj.key_0[].key_1[].key_3[].key_5, \
|
||||
obj.key_0[].key_1[].key_3[].key_6, obj.key_0[].key_1[].key_3[].key_7 FROM t_json_12 ORDER BY obj.id"
|
||||
obj.key_0[].key_1[].key_3[].key_6, obj.key_0[].key_1[].key_3[].key_7 FROM t_json_12 ORDER BY obj.id" --allow_suspicious_types_in_order_by 1
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE t_json_12;"
|
||||
|
@ -45,6 +45,6 @@ $CLICKHOUSE_CLIENT -q "SELECT \
|
||||
obj.key_1.key_2.key_3.key_4.key_5, \
|
||||
obj.key_1.key_2.key_3.key_4.key_6, \
|
||||
obj.key_1.key_2.key_3.key_4.key_7 \
|
||||
FROM t_json_13 ORDER BY obj.id"
|
||||
FROM t_json_13 ORDER BY obj.id" --allow_suspicious_types_in_order_by 1
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE t_json_13;"
|
||||
|
@ -54,6 +54,6 @@ EOF
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(data)) as path FROM t_json_6 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(arrayJoin(data.out[]))) as path FROM t_json_6 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(arrayJoin(arrayJoin(data.out[].outputs[])))) as path FROM t_json_6 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT data.key, data.out[].type, data.out[].value, data.out[].outputs[].index, data.out[].outputs[].n FROM t_json_6 ORDER BY data.key"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT data.key, data.out[].type, data.out[].value, data.out[].outputs[].index, data.out[].outputs[].n FROM t_json_6 ORDER BY data.key" --allow_suspicious_types_in_order_by 1
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE t_json_6;"
|
||||
|
@ -25,6 +25,6 @@ cat <<EOF | $CLICKHOUSE_CLIENT -q "INSERT INTO t_json_7 FORMAT JSONAsObject"
|
||||
EOF
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "SELECT DISTINCT arrayJoin(JSONAllPathsWithTypes(data)) as path FROM t_json_7 order by path;"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT data.key, data.categories FROM t_json_7 ORDER BY data.key"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT data.key, data.categories FROM t_json_7 ORDER BY data.key" --allow_suspicious_types_in_order_by 1
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE t_json_7;"
|
||||
|
@ -21,7 +21,7 @@ ${CLICKHOUSE_CLIENT} -q \
|
||||
${CLICKHOUSE_CLIENT} --enable_analyzer=1 -q \
|
||||
"SELECT data.payload.commits[].author.name AS name, count() AS c FROM ghdata \
|
||||
ARRAY JOIN data.payload.commits[].author.name \
|
||||
GROUP BY name ORDER BY c DESC, name LIMIT 5"
|
||||
GROUP BY name ORDER BY c DESC, name LIMIT 5" --allow_suspicious_types_in_order_by 1 --allow_suspicious_types_in_group_by 1
|
||||
|
||||
${CLICKHOUSE_CLIENT} -q "SELECT max(data.payload.pull_request.assignees[].size0) FROM ghdata"
|
||||
|
||||
|
@ -2,6 +2,9 @@
|
||||
|
||||
SET allow_experimental_json_type = 1;
|
||||
SET allow_experimental_analyzer = 1;
|
||||
SET allow_suspicious_types_in_order_by = 1;
|
||||
SET allow_suspicious_types_in_order_by = 1;
|
||||
|
||||
DROP TABLE IF EXISTS t_json_array;
|
||||
|
||||
CREATE TABLE t_json_array (id UInt32, arr Array(JSON)) ENGINE = MergeTree ORDER BY id;
|
||||
|
@ -1,6 +1,8 @@
|
||||
-- Tags: no-fasttest
|
||||
|
||||
SET allow_experimental_json_type = 1;
|
||||
SET allow_suspicious_types_in_order_by = 1;
|
||||
SET allow_suspicious_types_in_order_by = 1;
|
||||
|
||||
DROP TABLE IF EXISTS type_json_src;
|
||||
DROP TABLE IF EXISTS type_json_dst;
|
||||
|
@ -17,5 +17,5 @@ $CLICKHOUSE_CLIENT --async_insert=1 --wait_for_async_insert=1 -q 'INSERT INTO t_
|
||||
|
||||
wait
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "SELECT data.k1 FROM t_json_async_insert ORDER BY data.k1"
|
||||
$CLICKHOUSE_CLIENT -q "SELECT data.k1 FROM t_json_async_insert ORDER BY data.k1" --allow_suspicious_types_in_order_by 1
|
||||
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS t_json_async_insert"
|
||||
|
@ -1,5 +1,6 @@
|
||||
SET allow_experimental_dynamic_type=1;
|
||||
SET allow_suspicious_types_in_order_by=1;
|
||||
SET allow_experimental_dynamic_type = 1;
|
||||
SET allow_suspicious_types_in_order_by = 1;
|
||||
SET optimize_read_in_order = 1;
|
||||
|
||||
drop table if exists to_table;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user