2020-09-28 00:11:19 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-09-28 00:11:19 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
|
2024-08-16 11:22:22 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --query "
|
2020-09-28 00:11:19 +00:00
|
|
|
DROP TABLE IF EXISTS t;
|
|
|
|
CREATE TABLE t (a LowCardinality(Nullable(String))) ENGINE = Memory;
|
|
|
|
"
|
|
|
|
|
|
|
|
${CLICKHOUSE_CLIENT} --query "INSERT INTO t FORMAT RawBLOB" < ${BASH_SOURCE[0]}
|
|
|
|
|
|
|
|
cat ${BASH_SOURCE[0]} | md5sum
|
2024-08-16 11:22:22 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --query "SELECT * FROM t FORMAT RawBLOB" | md5sum
|
2020-09-28 00:11:19 +00:00
|
|
|
|
|
|
|
${CLICKHOUSE_CLIENT} --query "
|
|
|
|
DROP TABLE t;
|
|
|
|
"
|