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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to