ClickHouse/tests/queries/0_stateless/02703_jit_external_aggregation.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
811 B
Bash
Raw Normal View History

2023-03-30 07:57:17 +00:00
#!/usr/bin/env bash
2023-04-09 23:04:23 +00:00
# Tags: long, no-asan, no-msan, no-tsan, no-ubsan, no-debug
2023-03-30 07:57:17 +00:00
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
2023-04-24 00:28:58 +00:00
# This query should return empty result
2023-04-23 23:35:59 +00:00
$CLICKHOUSE_CLIENT --compile_aggregate_expressions 1 --min_count_to_compile_aggregate_expression=0 --query "
2023-03-30 07:57:17 +00:00
SELECT
COUNT() AS c,
group_key,
anyIf(r, key = 0) AS x0,
anyIf(r, key = 1) AS x1,
anyIf(r, key = 2) AS x2
FROM
(
SELECT
CRC32(toString(number)) % 1000000 AS group_key,
number % 3 AS key,
number AS r
FROM numbers(10000000)
)
GROUP BY group_key
HAVING (c = 2) AND (x0 > 0) AND (x1 > 0) AND (x2 > 0)
ORDER BY group_key ASC
LIMIT 10
SETTINGS max_bytes_before_external_group_by = 200000
" && echo -n '.'
echo