mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix null deference for GROUP BY WITH TOTALS HAVING (when the column from HAVING wasn't selected)
Found by UBsan fuzzer [1]. [1]: https://clickhouse-test-reports.s3.yandex.net/29503/a4f2663b8209e0e75021d8b84f932bc162c81857/fuzzer_ubsan/report.html#fail1
This commit is contained in:
parent
54ac0801a2
commit
032bb55a01
@ -0,0 +1,8 @@
|
||||
-- { echo }
|
||||
SELECT '' FROM numbers(1) GROUP BY number WITH TOTALS HAVING count(number)>0;
|
||||
|
||||
|
||||
|
||||
SELECT '' FROM numbers(1) GROUP BY number WITH TOTALS HAVING count(number)<0;
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
-- { echo }
|
||||
SELECT '' FROM numbers(1) GROUP BY number WITH TOTALS HAVING count(number)>0;
|
||||
SELECT '' FROM numbers(1) GROUP BY number WITH TOTALS HAVING count(number)<0;
|
Loading…
Reference in New Issue
Block a user