Add test for fixed issue (#15164)

This commit is contained in:
Artem Zuikov 2020-09-23 13:16:59 +03:00 committed by GitHub
parent 5eaa2a08d4
commit 25e9d11e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
6
36

View File

@ -0,0 +1,7 @@
SELECT count()
FROM numbers(4) AS n1, numbers(3) AS n2
WHERE n1.number > (select avg(n.number) from numbers(3) n);
SELECT count()
FROM numbers(4) AS n1, numbers(3) AS n2, numbers(6) AS n3
WHERE n1.number > (select avg(n.number) from numbers(3) n);