Merge pull request #30086 from ClickHouse/fix-global-in-with-totals

Add test with GLOBAL IN and totals.
This commit is contained in:
Nikolai Kochetov 2021-10-13 15:12:54 +03:00 committed by GitHub
commit 3ac2766c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,4 @@
0
2
2

View File

@ -0,0 +1,2 @@
select sum(number) from remote('127.0.0.{2,3}', numbers(2)) where number global in (select sum(number) from numbers(2) group by number with totals) group by number with totals