add test for #4858

This commit is contained in:
chertus 2019-08-28 20:00:20 +03:00
parent 6d6c53d42b
commit 91bc0eca11
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
SELECT toUInt64(1) x FROM (select 1)
GROUP BY 1
HAVING x
IN ( SELECT countIf(y, z == 1) FROM (SELECT 1 y, 1 z) );