@@ -44,7 +44,7 @@ func NewCompiledAggregateFunction(name string, args []sql.Expression, functions
4444 return newCompiledAggregateFunctionInternal (name , args , functions , functions .overloadsForParams (len (args )), newBuffer )
4545}
4646
47- // newCompiledFunctionInternal is called internally, which skips steps that may have already been processed.
47+ // newCompiledAggregateFunctionInternal is called internally, which skips steps that may have already been processed.
4848func newCompiledAggregateFunctionInternal (name string , args []sql.Expression , overloads * Overloads , fnOverloads []Overload , newBuffer func () (sql.AggregationBuffer , error )) * CompiledAggregateFunction {
4949 cf := newCompiledFunctionInternal (name , args , overloads , fnOverloads , false , nil )
5050 c := & CompiledAggregateFunction {
@@ -97,28 +97,35 @@ func (c *CompiledAggregateFunction) DebugString() string {
9797 sb .WriteString (")" )
9898 return sb .String ()
9999}
100+
101+ // NewBuffer implements the interface sql.Aggregation.
100102func (c * CompiledAggregateFunction ) NewBuffer () (sql.AggregationBuffer , error ) {
101103 return c .newBuffer ()
102104}
103105
106+ // Id implements the interface sql.Aggregation.
104107func (c * CompiledAggregateFunction ) Id () sql.ColumnId {
105108 return c .aggId
106109}
107110
111+ // WithId implements the interface sql.Aggregation.
108112func (c * CompiledAggregateFunction ) WithId (id sql.ColumnId ) sql.IdExpression {
109113 nc := * c
110114 nc .aggId = id
111115 return & nc
112116}
113117
118+ // NewWindowFunction implements the interface sql.WindowAdaptableExpression.
114119func (c * CompiledAggregateFunction ) NewWindowFunction () (sql.WindowFunction , error ) {
115120 panic ("windows are not implemented yet" )
116121}
117122
123+ // WithWindow implements the interface sql.WindowAdaptableExpression.
118124func (c * CompiledAggregateFunction ) WithWindow (window * sql.WindowDefinition ) sql.WindowAdaptableExpression {
119125 panic ("windows are not implemented yet" )
120126}
121127
128+ // Window implements the interface sql.WindowAdaptableExpression.
122129func (c * CompiledAggregateFunction ) Window () * sql.WindowDefinition {
123130 panic ("windows are not implemented yet" )
124131}
0 commit comments