You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/07/07 10:18:04 UTC
[GitHub] [incubator-doris] yangzhg opened a new issue #4040: Predicate pushdown amy incorrect when groupby with grouping sets
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] morningman closed issue #4040: Predicate pushdown amy incorrect when groupby with grouping sets
Posted by GitBox <gi...@apache.org>.
morningman closed issue #4040:
URL: https://github.com/apache/incubator-doris/issues/4040
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org