@@ -28,16 +28,13 @@ type InitialGroup struct {
2828}
2929
3030func NewInitialGroup (keys expression.Expressions , aggregates algebra.Aggregates ,
31- cost , cardinality float64 , size int64 , frCost float64 , canSpill bool , groupAs string , groupAsFields []string ) * InitialGroup {
31+ cost , cardinality float64 , size int64 , frCost float64 , groupAs string , groupAsFields []string ) * InitialGroup {
3232 rv := & InitialGroup {
3333 keys : keys ,
3434 aggregates : aggregates ,
3535 groupAs : groupAs ,
3636 groupAsFields : groupAsFields ,
3737 }
38- if canSpill {
39- rv .flags |= _CAN_SPILL
40- }
4138 setOptEstimate (& rv .optEstimate , cost , cardinality , size , frCost )
4239 return rv
4340}
@@ -66,10 +63,6 @@ func (this *InitialGroup) SetAggregates(aggregates algebra.Aggregates) {
6663 this .aggregates = aggregates
6764}
6865
69- func (this * InitialGroup ) CanSpill () bool {
70- return (this .flags & _CAN_SPILL ) != 0
71- }
72-
7366func (this * InitialGroup ) GroupAs () string {
7467 return this .groupAs
7568}
@@ -179,15 +172,12 @@ type IntermediateGroup struct {
179172}
180173
181174func NewIntermediateGroup (keys expression.Expressions , aggregates algebra.Aggregates ,
182- cost , cardinality float64 , size int64 , frCost float64 , canSpill bool , groupAs string ) * IntermediateGroup {
175+ cost , cardinality float64 , size int64 , frCost float64 , groupAs string ) * IntermediateGroup {
183176 rv := & IntermediateGroup {
184177 keys : keys ,
185178 aggregates : aggregates ,
186179 groupAs : groupAs ,
187180 }
188- if canSpill {
189- rv .flags |= _CAN_SPILL
190- }
191181 setOptEstimate (& rv .optEstimate , cost , cardinality , size , frCost )
192182 return rv
193183}
@@ -216,10 +206,6 @@ func (this *IntermediateGroup) SetAggregates(aggregates algebra.Aggregates) {
216206 this .aggregates = aggregates
217207}
218208
219- func (this * IntermediateGroup ) CanSpill () bool {
220- return (this .flags & _CAN_SPILL ) != 0
221- }
222-
223209func (this * IntermediateGroup ) GroupAs () string {
224210 return this .groupAs
225211}
@@ -319,14 +305,11 @@ type FinalGroup struct {
319305}
320306
321307func NewFinalGroup (keys expression.Expressions , aggregates algebra.Aggregates ,
322- cost , cardinality float64 , size int64 , frCost float64 , canSpill bool ) * FinalGroup {
308+ cost , cardinality float64 , size int64 , frCost float64 ) * FinalGroup {
323309 rv := & FinalGroup {
324310 keys : keys ,
325311 aggregates : aggregates ,
326312 }
327- if canSpill {
328- rv .flags |= _CAN_SPILL
329- }
330313 setOptEstimate (& rv .optEstimate , cost , cardinality , size , frCost )
331314 return rv
332315}
@@ -355,10 +338,6 @@ func (this *FinalGroup) SetAggregates(aggregates algebra.Aggregates) {
355338 this .aggregates = aggregates
356339}
357340
358- func (this * FinalGroup ) CanSpill () bool {
359- return (this .flags & _CAN_SPILL ) != 0
360- }
361-
362341func (this * FinalGroup ) MarshalJSON () ([]byte , error ) {
363342 return json .Marshal (this .MarshalBase (nil ))
364343}
0 commit comments