mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 11:04:10 +00:00
14 lines
521 B
Bash
14 lines
521 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||
|
. $CURDIR/../shell_config.sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
touch ${CLICKHOUSE_TMP}/empty.tsv
|
||
|
clickhouse-client --query="SELECT count() FROM data" --external --file=${CLICKHOUSE_TMP}/empty.tsv --name=data --types=UInt32
|
||
|
rm ${CLICKHOUSE_TMP}/empty.tsv
|
||
|
|
||
|
echo -n | clickhouse-client --query="SELECT count() FROM data" --external --file=- --name=data --types=UInt32
|
||
|
echo | clickhouse-client --query="SELECT count() FROM data" --external --file=- --name=data --types=String
|