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 18:08:07 UTC
[GitHub] jihoonson commented on issue #5566: Applying doubleSum over
doubleFirst aggregations in nested groupBy fails
jihoonson commented on issue #5566: Applying doubleSum over doubleFirst aggregations in nested groupBy fails
URL: https://github.com/apache/incubator-druid/issues/5566#issuecomment-409668501
> I'm wondering though, if this use-case shouldn't be possible to handle automatically.
@kskalski good point. We can do unless there's some use cases to get the non-finalized values from the inner query. Probably someone wants to compute a sort of custom aggregator on the pairs of <timestamp, first/last value>.
> so I suppose there is some trick / special postprocessing / flag forcing finalization of results.
Yes, there is a query context flag, called `finalize`, to get finalized results. `FinalizeResultsQueryRunner` is the query runner which automatically checks this flag and do some necessary work. In `GroupByStrategyV2.mergeResults()`, the broker sets `finalize` to false to get non-finalized results from historicals. Once it merges all results from historicals, it finalizes the merged results. Please check `ClientQuerySegmentWalker.makeRunner()` and `FluentQueryRunnerBuilder.applyPostMergeDecoration()`.
----------------------------------------------------------------
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