mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
16 lines
505 B
Bash
16 lines
505 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
|
||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||
|
# shellcheck source=../shell_config.sh
|
||
|
. "$CURDIR"/../shell_config.sh
|
||
|
|
||
|
echo '
|
||
|
SELECT
|
||
|
sum(toUInt8(1) ? toUInt8(1) : toUInt8(1)) AS metric,
|
||
|
groupArray(toUInt8(1) ? toUInt8(1) : toUInt8(1)),
|
||
|
groupArray(toUInt8(1) ? toUInt8(1) : 1),
|
||
|
sum(toUInt8(1) ? toUInt8(1) : 1)
|
||
|
FROM (SELECT materialize(toUInt64(1)) as key FROM numbers(22))
|
||
|
WHERE key = {b1:Int64}' | ${CLICKHOUSE_CURL} -sSg "${CLICKHOUSE_URL}¶m_b1=1" -d @-
|