Update 02013_zlib_read_after_eof.sh

This commit is contained in:
Nikita Mikhaylov 2021-08-26 02:19:34 +03:00 committed by GitHub
parent 4a12a5fe91
commit b505a9bf8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ $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_FILE" | go run 02013_zlib_read_after_eof.go
cat "$DATA_FILE" | go run $CUR_DIR/02013_zlib_read_after_eof.go
$CLICKHOUSE_CLIENT -q "SELECT count() FROM graphite;"