2022-05-17 11:48:06 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CUR_DIR"/../shell_config.sh
|
|
|
|
|
2023-03-10 09:45:49 +00:00
|
|
|
opts=(
|
2024-07-12 12:49:26 +00:00
|
|
|
"--enable_analyzer=1"
|
2023-03-10 09:45:49 +00:00
|
|
|
)
|
|
|
|
|
2022-05-17 11:48:06 +00:00
|
|
|
function run_query()
|
|
|
|
{
|
|
|
|
echo "clickhouse-client $*"
|
|
|
|
$CLICKHOUSE_CLIENT "$@"
|
|
|
|
|
|
|
|
echo "clickhouse-local $*"
|
|
|
|
$CLICKHOUSE_LOCAL "$@"
|
|
|
|
}
|
2023-03-10 09:45:49 +00:00
|
|
|
run_query "${opts[@]}" --query_kind secondary_query -q "explain plan header=1 select toString(dummy) as dummy from system.one group by dummy"
|
|
|
|
run_query "${opts[@]}" --query_kind initial_query -q "explain plan header=1 select toString(dummy) as dummy from system.one group by dummy"
|