mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Added test.
This commit is contained in:
parent
35f48e60ad
commit
17edf238e3
11
tests/queries/0_stateless/01655_plan_optimizations.reference
Normal file
11
tests/queries/0_stateless/01655_plan_optimizations.reference
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
sipHash should be calculated after filtration
|
||||||
|
FUNCTION sipHash64
|
||||||
|
Filter column: equals
|
||||||
|
sorting steps should know about limit
|
||||||
|
Limit 10
|
||||||
|
MergingSorted
|
||||||
|
Limit 10
|
||||||
|
MergeSorting
|
||||||
|
Limit 10
|
||||||
|
PartialSorting
|
||||||
|
Limit 10
|
10
tests/queries/0_stateless/01655_plan_optimizations.sh
Executable file
10
tests/queries/0_stateless/01655_plan_optimizations.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
# shellcheck source=../shell_config.sh
|
||||||
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
|
echo "sipHash should be calculated after filtration"
|
||||||
|
$CLICKHOUSE_CLIENT -q "explain actions = 1 select sum(x), sum(y) from (select sipHash64(number) as x, bitAnd(number, 1024) as y from numbers_mt(1000000000) limit 1000000000) where y = 0" | grep -o "FUNCTION sipHash64\|Filter column: equals"
|
||||||
|
echo "sorting steps should know about limit"
|
||||||
|
$CLICKHOUSE_CLIENT -q "explain actions = 1 select number from (select number from numbers(500000000) order by -number) limit 10" | grep -o "MergingSorted\|MergeSorting\|PartialSorting\|Limit 10"
|
Loading…
Reference in New Issue
Block a user