2022-02-10 12:24:13 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-02-14 14:26:48 +00:00
|
|
|
# Tags: no-fasttest, no-parallel
|
2022-02-10 12:24:13 +00:00
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
|
|
|
|
|
|
|
|
$CLICKHOUSE_LOCAL -q "select toUInt32(number) as x from numbers(10) format JSONEachRow" > data.jsoneachrow
|
|
|
|
|
|
|
|
$CLICKHOUSE_LOCAL -q "desc table table" < data.jsoneachrow
|
|
|
|
$CLICKHOUSE_LOCAL -q "select * from table" < data.jsoneachrow
|
|
|
|
|
|
|
|
rm data.jsoneachrow
|
|
|
|
|
2022-02-10 13:57:32 +00:00
|
|
|
echo -e "1\t2\t3" | $CLICKHOUSE_LOCAL -q "desc table table" --file=-
|
|
|
|
echo -e "1\t2\t3" | $CLICKHOUSE_LOCAL -q "select * from table" --file=-
|
2022-02-10 12:24:13 +00:00
|
|
|
|