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 2018/08/01 10:11:08 UTC

[GitHub] sh-learn opened a new issue #6089: Use Filtered Aggregator return null but expect 0

sh-learn opened a new issue #6089: Use Filtered Aggregator return null but expect 0
URL: https://github.com/apache/incubator-druid/issues/6089
 
 
   I recently encountered a problem with druid. When using the filter aggregator to count the total number of times a condition is met, since there is no data that satisfies the filter condition, it returns null when LongSum is performed, but expects to return 0. I don't know if there is a solution? The version of druid used is 0.10.1.
   
   filtered aggregator:
        {
   	"type": "filtered",
   	"filter": {
   		"type": "selector",
   		"dimension": "xxx",
   		"value": "yyy"
   	},
   	"aggregator": {
   		"type": "longSum",
   		"name": "value",
   		"fieldName": "zzz"
   	}
       }
   result:
   {
     "version" : "v1",
     "timestamp" : "2018-08-01T00:00:00.000+08:00",
     "event" : {
       "value" : null
    }
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org