mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
b1263c18ee
* fix pcg deserialization * Update 01156_pcg_deserialization.sh * Update 01156_pcg_deserialization.sh * Update 01156_pcg_deserialization.sh * fix another bug Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: alexey-milovidov <milovidov@yandex-team.ru>
20 lines
765 B
Bash
Executable File
20 lines
765 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
declare -a engines=("Memory" "MergeTree order by n" "Log")
|
|
|
|
for engine in "${engines[@]}"
|
|
do
|
|
$CLICKHOUSE_CLIENT -q "drop table if exists t";
|
|
$CLICKHOUSE_CLIENT -q "create table t (n UInt8, a1 AggregateFunction(groupArraySample(1), UInt8)) engine=$engine"
|
|
$CLICKHOUSE_CLIENT -q "insert into t select number % 5 as n, groupArraySampleState(1)(toUInt8(number)) from numbers(10) group by n"
|
|
|
|
$CLICKHOUSE_CLIENT -q "select * from t format TSV" | $CLICKHOUSE_CLIENT -q "insert into t format TSV"
|
|
$CLICKHOUSE_CLIENT -q "select countDistinct(n), countDistinct(a1) from t"
|
|
|
|
$CLICKHOUSE_CLIENT -q "drop table t";
|
|
done
|