ClickHouse/tests/queries/0_stateless/01304_direct_io_long.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
975 B
Bash
Raw Normal View History

2020-06-09 00:38:47 +00:00
#!/usr/bin/env bash
2024-08-08 02:07:43 +00:00
# Tags: long, no-object-storage-with-slow-build, no-flaky-check
# It can be too long with ThreadFuzzer
2020-06-09 00:38:47 +00:00
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
2020-08-01 00:51:12 +00:00
. "$CURDIR"/../shell_config.sh
2020-06-09 00:38:47 +00:00
$CLICKHOUSE_CLIENT --max_rows_to_read 50M --query "
2020-06-09 00:38:47 +00:00
DROP TABLE IF EXISTS bug;
CREATE TABLE bug (UserID UInt64, Date Date) ENGINE = MergeTree ORDER BY Date
SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi', merge_max_block_size = 8192;
2020-06-09 00:38:47 +00:00
INSERT INTO bug SELECT rand64(), '2020-06-07' FROM numbers(50000000);
OPTIMIZE TABLE bug FINAL;"
2021-03-26 16:40:02 +00:00
LOG="$CLICKHOUSE_TMP/err-$CLICKHOUSE_DATABASE"
2024-07-25 20:08:32 +00:00
$CLICKHOUSE_BENCHMARK --max_rows_to_read 51M --iterations 10 --max_threads 100 --min_bytes_to_use_direct_io 1 <<< "SELECT sum(UserID) FROM bug PREWHERE NOT ignore(Date)" 1>/dev/null 2>"$LOG"
2021-03-26 16:40:02 +00:00
cat "$LOG" | grep Exception
cat "$LOG" | grep Loaded
2020-06-09 00:38:47 +00:00
2021-03-26 16:40:02 +00:00
rm "$LOG"
2020-12-07 08:35:44 +00:00
$CLICKHOUSE_CLIENT --query "
2020-06-09 00:38:47 +00:00
DROP TABLE bug;"