mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
17 lines
547 B
Bash
17 lines
547 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||
|
# shellcheck source=../shell_config.sh
|
||
|
. "$CUR_DIR"/../shell_config.sh
|
||
|
|
||
|
function run_query()
|
||
|
{
|
||
|
echo "clickhouse-client $*"
|
||
|
$CLICKHOUSE_CLIENT "$@"
|
||
|
|
||
|
echo "clickhouse-local $*"
|
||
|
$CLICKHOUSE_LOCAL "$@"
|
||
|
}
|
||
|
run_query --query_kind secondary_query -q "explain plan header=1 select toString(dummy) as dummy from system.one group by dummy"
|
||
|
run_query --query_kind initial_query -q "explain plan header=1 select toString(dummy) as dummy from system.one group by dummy"
|