ClickHouse/tests/queries/0_stateless/02166_arrow_dictionary_inference.sh

12 lines
470 B
Bash
Raw Normal View History

2022-01-11 17:30:35 +00:00
#!/usr/bin/env bash
# Tags: no-parallel, no-fasttest
2022-01-11 17:30:35 +00:00
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
2022-03-29 13:07:37 +00:00
$CLICKHOUSE_CLIENT -q "insert into table function file('arrow.dict', 'Arrow', 'x LowCardinality(UInt64)') select number from numbers(10) settings output_format_arrow_low_cardinality_as_dictionary=1, engine_file_truncate_on_insert=1"
2022-01-11 17:30:35 +00:00
$CLICKHOUSE_CLIENT -q "desc file('arrow.dict', 'Arrow')"