fix tests

This commit is contained in:
Arthur Passos 2022-12-13 11:05:56 -03:00
parent 07a589c63f
commit 1910377be5
4 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
8c089cb51ab01cb2ae5d4b6aa8921b6d -
406b888d56db414d25b854d3673d345f -
1

View File

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