@@ -33,7 +33,9 @@ extern exec::AggregateRegistrationResult registerBitwiseXorAggregate(
33
33
extern exec::AggregateRegistrationResult registerChecksumAggregate (
34
34
const std::string& prefix);
35
35
extern exec::AggregateRegistrationResult registerCountAggregate (
36
- const std::string& prefix);
36
+ const std::string& prefix,
37
+ bool registerCompanionFunctions,
38
+ bool overwrite);
37
39
extern exec::AggregateRegistrationResult registerCountIfAggregate (
38
40
const std::string& prefix);
39
41
extern exec::AggregateRegistrationResult registerEntropyAggregate (
@@ -62,30 +64,45 @@ extern exec::AggregateRegistrationResult registerSetUnionAggregate(
62
64
const std::string& prefix);
63
65
64
66
extern void registerApproxDistinctAggregates (const std::string& prefix);
65
- extern void registerBitwiseAggregates (const std::string& prefix);
67
+ extern void registerBitwiseAggregates (
68
+ const std::string& prefix,
69
+ bool registerCompanionFunctions,
70
+ bool overwrite);
66
71
extern void registerBoolAggregates (const std::string& prefix);
67
72
extern void registerCentralMomentsAggregates (const std::string& prefix);
68
- extern void registerCovarianceAggregates (const std::string& prefix);
69
- extern void registerMinMaxAggregates (const std::string& prefix);
73
+ extern void registerCovarianceAggregates (
74
+ const std::string& prefix,
75
+ bool registerCompanionFunctions,
76
+ bool overwrite);
77
+ extern void registerMinMaxAggregates (
78
+ const std::string& prefix,
79
+ bool registerCompanionFunctions,
80
+ bool overwrite);
70
81
extern void registerMinMaxByAggregates (const std::string& prefix);
71
82
extern void registerSumAggregate (const std::string& prefix);
72
- extern void registerVarianceAggregates (const std::string& prefix);
83
+ extern void registerVarianceAggregates (
84
+ const std::string& prefix,
85
+ bool registerCompanionFunctions,
86
+ bool overwrite);
73
87
74
- void registerAllAggregateFunctions (const std::string& prefix) {
88
+ void registerAllAggregateFunctions (
89
+ const std::string& prefix,
90
+ bool registerCompanionFunctions,
91
+ bool overwrite) {
75
92
registerApproxDistinctAggregates (prefix);
76
93
registerApproxMostFrequentAggregate (prefix);
77
94
registerApproxPercentileAggregate (prefix);
78
95
registerArbitraryAggregate (prefix);
79
96
registerArrayAggAggregate (prefix);
80
97
registerAverageAggregate (prefix);
81
- registerBitwiseAggregates (prefix);
98
+ registerBitwiseAggregates (prefix, registerCompanionFunctions, overwrite );
82
99
registerBitwiseXorAggregate (prefix);
83
100
registerBoolAggregates (prefix);
84
101
registerCentralMomentsAggregates (prefix);
85
102
registerChecksumAggregate (prefix);
86
- registerCountAggregate (prefix);
103
+ registerCountAggregate (prefix, registerCompanionFunctions, overwrite );
87
104
registerCountIfAggregate (prefix);
88
- registerCovarianceAggregates (prefix);
105
+ registerCovarianceAggregates (prefix, registerCompanionFunctions, overwrite );
89
106
registerEntropyAggregate (prefix);
90
107
registerGeometricMeanAggregate (prefix);
91
108
registerHistogramAggregate (prefix);
@@ -95,13 +112,13 @@ void registerAllAggregateFunctions(const std::string& prefix) {
95
112
registerMaxDataSizeForStatsAggregate (prefix);
96
113
registerMultiMapAggAggregate (prefix);
97
114
registerSumDataSizeForStatsAggregate (prefix);
98
- registerMinMaxAggregates (prefix);
115
+ registerMinMaxAggregates (prefix, registerCompanionFunctions, overwrite );
99
116
registerMinMaxByAggregates (prefix);
100
117
registerReduceAgg (prefix);
101
118
registerSetAggAggregate (prefix);
102
119
registerSetUnionAggregate (prefix);
103
120
registerSumAggregate (prefix);
104
- registerVarianceAggregates (prefix);
121
+ registerVarianceAggregates (prefix, registerCompanionFunctions, overwrite );
105
122
}
106
123
107
124
} // namespace facebook::velox::aggregate::prestosql
0 commit comments