MCPcopy Create free account
hub / github.com/ByConity/ByConity / hasNonParallelAggregateFunctions

Function hasNonParallelAggregateFunctions

src/QueryPlan/AggregatingStep.cpp:54–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52namespace DB
53{
54bool hasNonParallelAggregateFunctions(const AggregateDescriptions & aggregates)
55{
56 for (const auto & agg: aggregates)
57 {
58 auto agg_name = agg.function->getName();
59 // if (startsWith(agg_name, "finderFunnel") ||
60 // startsWith(agg_name, "finderGroupFunnel") ||
61 // startsWith(agg_name, "pathSplit") ||
62 // startsWith(agg_name, "pathCount") ||
63 // startsWith(agg_name, "retention") ||
64 // startsWith(agg_name, "attributionAnalysis") ||
65 // startsWith(agg_name, "attributionCorrelation") ||
66 // startsWith(agg_name, "funnelRep") ||
67 // agg_name == "sessionAnalysis" ||
68 // agg_name == "vSessionAnalysis")
69 // return true;
70
71 if (startsWith(agg_name, "pathCount") ||
72 startsWith(agg_name, "attributionCorrelation") ||
73 startsWith(agg_name, "funnelRep"))
74 return true;
75 }
76
77 return false;
78}
79
80static ITransformingStep::Traits getTraits(bool should_produce_results_in_order_of_bucket_number)
81{

Callers 2

transformPipelineMethod · 0.85
transformPipelineMethod · 0.85

Calls 2

startsWithFunction · 0.50
getNameMethod · 0.45

Tested by

no test coverage detected