mirror of https://github.com/apache/druid.git
add a context to force 2 pass algorithm for topNs
This commit is contained in:
parent
dd59b58208
commit
2906544c30
|
@ -106,7 +106,7 @@ public class TopNQueryEngine
|
|||
topNAlgorithm = new DimExtractionTopNAlgorithm(capabilities, query);
|
||||
} else if (selector.isAggregateAllMetrics()) {
|
||||
topNAlgorithm = new PooledTopNAlgorithm(capabilities, query, bufferPool);
|
||||
} else if (selector.isAggregateTopNMetricFirst()) {
|
||||
} else if (selector.isAggregateTopNMetricFirst() || query.getContextValue("doAggregateTopNMetricFirst", false)) {
|
||||
topNAlgorithm = new AggregateTopNMetricFirstAlgorithm(capabilities, query, bufferPool);
|
||||
} else {
|
||||
topNAlgorithm = new PooledTopNAlgorithm(capabilities, query, bufferPool);
|
||||
|
|
Loading…
Reference in New Issue