ClickHouse/tests/queries/0_stateless/01543_avro_deserialization_with_lc.sh

15 lines
578 B
Bash
Raw Normal View History

2020-10-29 18:02:48 +00:00
#!/usr/bin/env bash
2021-09-12 12:35:27 +00:00
# Tags: no-unbundled, no-fasttest
2020-10-29 18:02:48 +00:00
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
2020-10-29 18:02:48 +00:00
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT --query "CREATE TABLE IF NOT EXISTS test_01543 (value LowCardinality(String)) ENGINE=Memory()"
$CLICKHOUSE_CLIENT --query "INSERT INTO test_01543 SELECT toString(number) FROM numbers(1000)"
$CLICKHOUSE_CLIENT -q "SELECT * FROM test_01543 FORMAT Avro" |
$CLICKHOUSE_CLIENT -q "INSERT INTO test_01543 FORMAT Avro";
$CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS test_01543"