You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "kgyrtkirk (via GitHub)" <gi...@apache.org> on 2023/11/14 11:43:23 UTC
[I] Windowed min aggregates null-s as 0 (druid)
kgyrtkirk opened a new issue, #15370:
URL: https://github.com/apache/druid/issues/15370
```
SELECT *,MILLIS_TO_TIMESTAMP(subQry.w_min) > '1920-05-19'
FROM
( SELECT l2,l1,MIN(l1) OVER W as w_min
FROM numfoo where l1 is null or dim1 = 'nonexistent'
WINDOW W AS ( PARTITION BY l1 ORDER BY l1 ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW )
) subQry
WHERE MILLIS_TO_TIMESTAMP(subQry.w_min) > '1920-05-14'
```
resultset
```
- [null,null,0,true]
- [null,null,0,true]
```
which means that the `min` of 2 rows with `null` values were evaluated to `0`
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] Windowed min aggregates null-s as 0 (druid)
Posted by "clintropolis (via GitHub)" <gi...@apache.org>.
clintropolis closed issue #15370: Windowed min aggregates null-s as 0
URL: https://github.com/apache/druid/issues/15370
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org