improve test

This commit is contained in:
Artur 2021-08-25 18:01:10 +00:00
parent fa95fa1517
commit 40dde28f9a
3 changed files with 7 additions and 3 deletions

View File

@ -1,14 +1,17 @@
#!/usr/bin/env bash
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS graphite;"
$CLICKHOUSE_CLIENT -q "CREATE TABLE graphite(\`Path\` String, \`Value\` Float64, \`Time\` UInt32, \`Date\` Date, \`Timestamp\` UInt32) \
ENGINE = MergeTree PARTITION BY toYYYYMM(Date) ORDER BY (Path, Time) SETTINGS index_granularity = 8192;"
cat 02013_zlib_read_after_eof_data | go run 02013_zlib_read_after_eof.go
cat data_zlib/02013_zlib_read_after_eof_data | go run 02013_zlib_read_after_eof.go
$CLICKHOUSE_CLIENT -q "SELECT count() FROM graphite;"
$CLICKHOUSE_CLIENT -q "drop table graphite"
$CLICKHOUSE_CLIENT -q "drop table graphite;"