mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Done
This commit is contained in:
parent
12ff2d7cb1
commit
6648dabacf
@ -1,4 +1,2 @@
|
||||
1
|
||||
1
|
||||
02841_summary_default_interactive_0 2
|
||||
02841_summary_default_interactive_high 2
|
||||
|
@ -4,20 +4,6 @@ CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
function involved_parallel_replicas () {
|
||||
# Not using current_database = '$CLICKHOUSE_DATABASE' as nested parallel queries aren't run with it
|
||||
$CLICKHOUSE_CLIENT --query "
|
||||
SELECT
|
||||
initial_query_id,
|
||||
(count() - 2) / 2 as number_of_parallel_replicas
|
||||
FROM system.query_log
|
||||
WHERE event_date >= yesterday()
|
||||
AND initial_query_id LIKE '$1%'
|
||||
GROUP BY initial_query_id
|
||||
ORDER BY min(event_time_microseconds) ASC
|
||||
FORMAT TSV"
|
||||
}
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "CREATE TABLE replicas_summary (n Int64) ENGINE = MergeTree() ORDER BY n AS Select * from numbers(100_000)"
|
||||
|
||||
# Note that we are not verifying the exact read rows and bytes (apart from not being 0) for 2 reasons:
|
||||
@ -34,7 +20,7 @@ echo "
|
||||
SETTINGS
|
||||
max_parallel_replicas = 2,
|
||||
cluster_for_parallel_replicas = 'test_cluster_one_shard_three_replicas_localhost',
|
||||
allow_experimental_parallel_reading_from_replicas = 1,
|
||||
allow_experimental_parallel_reading_from_replicas = 2,
|
||||
parallel_replicas_for_non_replicated_merge_tree = 1,
|
||||
use_hedged_requests = 0,
|
||||
interactive_delay=0
|
||||
@ -49,7 +35,7 @@ echo "
|
||||
SETTINGS
|
||||
max_parallel_replicas = 2,
|
||||
cluster_for_parallel_replicas = 'test_cluster_one_shard_three_replicas_localhost',
|
||||
allow_experimental_parallel_reading_from_replicas = 1,
|
||||
allow_experimental_parallel_reading_from_replicas = 2,
|
||||
parallel_replicas_for_non_replicated_merge_tree = 1,
|
||||
use_hedged_requests = 0,
|
||||
interactive_delay=99999999999
|
||||
@ -58,4 +44,3 @@ echo "
|
||||
| grep "Summary" | grep -cv '"read_rows":"0"'
|
||||
|
||||
$CLICKHOUSE_CLIENT --query "SYSTEM FLUSH LOGS"
|
||||
involved_parallel_replicas "${query_id_base}"
|
||||
|
Loading…
Reference in New Issue
Block a user