From 8f7be52ac40a9af90d4d9f40806ee65da067b009 Mon Sep 17 00:00:00 2001 From: avogar Date: Mon, 15 Nov 2021 14:58:18 +0300 Subject: [PATCH] Update test, remove commented code --- src/Storages/StorageFile.cpp | 5 ----- .../02115_write_buffers_finalize.reference | 4 ++++ .../0_stateless/02115_write_buffers_finalize.sh | 15 +++++++++------ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/Storages/StorageFile.cpp b/src/Storages/StorageFile.cpp index 8b1f742342a..7ef34448f81 100644 --- a/src/Storages/StorageFile.cpp +++ b/src/Storages/StorageFile.cpp @@ -654,11 +654,6 @@ public: write_buf->finalize(); } - // void flush() override - // { - // writer->flush(); - // } - private: StorageMetadataPtr metadata_snapshot; String table_name_for_log; diff --git a/tests/queries/0_stateless/02115_write_buffers_finalize.reference b/tests/queries/0_stateless/02115_write_buffers_finalize.reference index adc6559dcf9..e9291de6701 100644 --- a/tests/queries/0_stateless/02115_write_buffers_finalize.reference +++ b/tests/queries/0_stateless/02115_write_buffers_finalize.reference @@ -1 +1,5 @@ 100000 99999 +100000 99999 +100000 99999 +100000 99999 +100000 99999 diff --git a/tests/queries/0_stateless/02115_write_buffers_finalize.sh b/tests/queries/0_stateless/02115_write_buffers_finalize.sh index cb6f873b332..381e547f78c 100755 --- a/tests/queries/0_stateless/02115_write_buffers_finalize.sh +++ b/tests/queries/0_stateless/02115_write_buffers_finalize.sh @@ -4,10 +4,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CURDIR"/../shell_config.sh -${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS file" -${CLICKHOUSE_CLIENT} --query "CREATE TABLE file (x UInt64) ENGINE = File(Native, '${CLICKHOUSE_DATABASE}/data.xz')" -${CLICKHOUSE_CLIENT} --query "TRUNCATE TABLE file" -${CLICKHOUSE_CLIENT} --query "INSERT INTO file SELECT * FROM numbers(100000)" -${CLICKHOUSE_CLIENT} --query "SELECT count(), max(x) FROM file" -${CLICKHOUSE_CLIENT} --query "DROP TABLE file" +for m in gz br xz zst bz2 +do + ${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS file" + ${CLICKHOUSE_CLIENT} --query "CREATE TABLE file (x UInt64) ENGINE = File(Native, '${CLICKHOUSE_DATABASE}/${m}.data.${m}')" + ${CLICKHOUSE_CLIENT} --query "TRUNCATE TABLE file" + ${CLICKHOUSE_CLIENT} --query "INSERT INTO file SELECT * FROM numbers(100000)" + ${CLICKHOUSE_CLIENT} --query "SELECT count(), max(x) FROM file" + ${CLICKHOUSE_CLIENT} --query "DROP TABLE file" +done