mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Add test
This commit is contained in:
parent
c45c04a1bb
commit
cc3c8a4e30
@ -464,3 +464,16 @@ Expression ((Projection + (Before ORDER BY + (Projection + Before ORDER BY))))
|
||||
1
|
||||
|
||||
0
|
||||
-- DISTINCT COUNT() with GROUP BY => do _not_ remove DISTINCT
|
||||
-- query
|
||||
select distinct count() from numbers(10) group by number
|
||||
-- explain
|
||||
Expression (Projection)
|
||||
Distinct
|
||||
Distinct (Preliminary DISTINCT)
|
||||
Expression (Before ORDER BY)
|
||||
Aggregating
|
||||
Expression (Before GROUP BY)
|
||||
ReadFromStorage (SystemNumbers)
|
||||
-- execute
|
||||
1
|
||||
|
@ -256,3 +256,7 @@ FROM
|
||||
GROUP BY a WITH TOTALS
|
||||
)"
|
||||
run_query "$query"
|
||||
|
||||
echo "-- DISTINCT COUNT() with GROUP BY => do _not_ remove DISTINCT"
|
||||
query="select distinct count() from numbers(10) group by number"
|
||||
run_query "$query"
|
||||
|
Loading…
Reference in New Issue
Block a user