mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Added a test for empty external data
This commit is contained in:
parent
519e6ce6f3
commit
273267ca8b
@ -0,0 +1,3 @@
|
||||
0
|
||||
0
|
||||
1
|
13
tests/queries/0_stateless/01279_empty_external_table.sh
Executable file
13
tests/queries/0_stateless/01279_empty_external_table.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user