BigRantLing commented on issue #10236: URL: https://github.com/apache/druid/issues/10236#issuecomment-670444651
[Druid filtered aggregator](https://druid.apache.org/docs/latest/querying/aggregations.html#filtered-aggregator) may be help you . I think it can be parsed to native query like below: ```json { "queryType":"queryType", .... "aggregations":[ { "type":"filtered", "filter":{ "type":"selector", "dimension":"column_A", "value":"value_one" }, "aggregator":{ "type":"longSum", "fieldName":"column_B", "name":"sum_B" } }, { "type":"filtered", "filter":{ "type":"selector", "dimension":"column_A", "value":"value_two" }, "aggregator":{ "type":"longSum", "fieldName":"column_D", "name":"sum_D" } } ] } ``` ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
