yangzhg opened a new issue #4040:
URL: https://github.com/apache/incubator-doris/issues/4040
with sql like
```
SELECT
IF(col2 IS NULL, 'ALL', col2) AS col2,
IF(col3 IS NULL, 'ALL', col3) AS col3,
pv
FROM
(
SELECT
col1,
col2,
col3,
SUM(pv) AS pv
FROM a
WHERE col1 = 0
AND col4 = 1
AND col3 = 'foo'
GROUP BY
GROUPING SETS (
(col1),
(col1, col2),
(col1, col3),
(col1, col2, col3)
)
) t
WHERE IF(col2 IS NULL, 'ALL', col2) = 'ALL'
```
the IF(col2 IS NULL, 'ALL', col2) = 'ALL' will be push down to scan node of
table a, if grouping set is given and column is not in all grouping set list,
we cannot push the predicate since the column value can be null
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]