This commit is contained in:
Nikita Mikhaylov 2021-08-25 21:29:28 +00:00
parent 69d2a6080b
commit 4a12a5fe91
2 changed files with 5 additions and 1 deletions

View File

@ -396,6 +396,9 @@ function run_tests
# needs s3
01944_insert_partition_by
# depends on Go
02013_zlib_read_after_eof
)
time clickhouse-test --hung-check -j 8 --order=random --use-skip-list \

View File

@ -4,13 +4,14 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
DATA_FILE=$CUR_DIR/data_zlib/02013_zlib_read_after_eof_data
$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 data_zlib/02013_zlib_read_after_eof_data | go run 02013_zlib_read_after_eof.go
cat "$DATA_FILE" | go run 02013_zlib_read_after_eof.go
$CLICKHOUSE_CLIENT -q "SELECT count() FROM graphite;"