You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/05/12 19:33:06 UTC

[GitHub] [druid] damnMeddlingKid commented on issue #10644: Vector Filtered Aggregates return the default buffer init values when no rows match the filter predicate

damnMeddlingKid commented on issue #10644:
URL: https://github.com/apache/druid/issues/10644#issuecomment-840043076


   > Why 0? If there are no matching rows, shouldn't the result be that no rows are returned, and not a value?
   
   We should consider all codepaths, You could be running this as a filtered aggregate along with other columns that do have values.
   
   It looks like in the case of default value replacement the aggregates are initialized with sentinel values that help the user distinguish "no result" because the plan can't return "null" in this case. 
   
   I think the behaviour should be documented so that its doesn't come as a surprise to users.


-- 
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@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org