mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
fix tests
This commit is contained in:
parent
07a589c63f
commit
1910377be5
@ -1,2 +1,2 @@
|
||||
8c089cb51ab01cb2ae5d4b6aa8921b6d -
|
||||
406b888d56db414d25b854d3673d345f -
|
||||
1
|
||||
|
@ -5,10 +5,10 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
DATA_FILE=$CUR_DIR/data_parse_key_value/big_input.json.gz
|
||||
DATA_FILE=$CUR_DIR/data_extract_key_value_pairs/big_input_file.txt
|
||||
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS json_map"
|
||||
${CLICKHOUSE_CLIENT} --query="CREATE TABLE json_map (map Map(String, String)) ENGINE = Memory"
|
||||
zcat "$DATA_FILE" | ${CLICKHOUSE_CLIENT} -q "INSERT INTO json_map SELECT extractKeyValuePairs(file('big_input_file.txt'), '\\\', ':', ',', '\"')"
|
||||
cat "$DATA_FILE" | ${CLICKHOUSE_CLIENT} -q "INSERT INTO json_map SELECT extractKeyValuePairs(line, '\\\', ':', ',', '\"') FROM input('line String') FORMAT LineAsString"
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT * FROM json_map" | md5sum
|
||||
${CLICKHOUSE_CLIENT} --query="SELECT count() FROM json_map"
|
||||
${CLICKHOUSE_CLIENT} --query="drop table json_map"
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user