-
Notifications
You must be signed in to change notification settings - Fork 183
/
evalaggs.go
586 lines (503 loc) · 19.3 KB
/
evalaggs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
// Copyright (c) 2021-2024 SigScalr, Inc.
//
// This file is part of SigLens Observability Solution
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package aggregations
import (
"fmt"
"math"
"sort"
"strings"
"github.com/siglens/siglens/pkg/segment/structs"
"github.com/siglens/siglens/pkg/segment/utils"
)
func ComputeAggEvalForMinOrMax(measureAgg *structs.MeasureAggregator, sstMap map[string]*structs.SegStats, measureResults map[string]utils.CValueEnclosure, isMin bool) error {
fields := measureAgg.ValueColRequest.GetFields()
if len(fields) != 1 {
return fmt.Errorf("ComputeAggEvalForMinOrMax: Incorrect number of fields for aggCol: %v", measureAgg.String())
}
sst, ok := sstMap[fields[0]]
if !ok {
return fmt.Errorf("ComputeAggEvalForMinOrMax: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
fieldToValue := make(map[string]utils.CValueEnclosure)
edgeValue := -1.7976931348623157e+308
if isMin {
edgeValue = math.MaxFloat64
}
for _, eVal := range sst.Records {
fieldToValue[fields[0]] = *eVal
boolResult, err := measureAgg.ValueColRequest.BooleanExpr.Evaluate(fieldToValue)
if err != nil {
return fmt.Errorf("ComputeAggEvalForMinOrMax: there are some errors in the eval function that is inside the min/max function: %v", err)
}
if boolResult {
eValFloat, err := eVal.GetFloatValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForMinOrMax: can not get the float value: %v", err)
}
// Keep maximum and minimum values
if (isMin && eValFloat < edgeValue) || (!isMin && eValFloat > edgeValue) {
edgeValue = eValFloat
}
}
}
enclosure, exists := measureResults[measureAgg.String()]
if !exists {
cVal := -1.7976931348623157e+308
if isMin {
cVal = math.MaxFloat64
}
enclosure = utils.CValueEnclosure{
Dtype: utils.SS_DT_FLOAT,
CVal: cVal,
}
measureResults[measureAgg.String()] = enclosure
}
eValFloat, err := enclosure.GetFloatValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForMinOrMax: Attempted to perform aggregate min(), but the column %s is not a float value", fields[0])
}
if (isMin && eValFloat > edgeValue) || (!isMin && eValFloat < edgeValue) {
enclosure.CVal = edgeValue
measureResults[measureAgg.String()] = enclosure
}
return nil
}
func ComputeAggEvalForRange(measureAgg *structs.MeasureAggregator, sstMap map[string]*structs.SegStats, measureResults map[string]utils.CValueEnclosure, runningEvalStats map[string]interface{}) error {
fields := measureAgg.ValueColRequest.GetFields()
if len(fields) != 1 {
return fmt.Errorf("ComputeAggEvalForRange: Incorrect number of fields for aggCol: %v", measureAgg.String())
}
sst, ok := sstMap[fields[0]]
if !ok {
return fmt.Errorf("ComputeAggEvalForRange: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
fieldToValue := make(map[string]utils.CValueEnclosure)
maxVal := -1.7976931348623157e+308
minVal := math.MaxFloat64
for _, eVal := range sst.Records {
fieldToValue[fields[0]] = *eVal
boolResult, err := measureAgg.ValueColRequest.BooleanExpr.Evaluate(fieldToValue)
if err != nil {
return fmt.Errorf("ComputeAggEvalForRange: there are some errors in the eval function that is inside the range function: %v", err)
}
if boolResult {
eValFloat, err := eVal.GetFloatValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForRange: can not get the float value: %v", err)
}
// Keep maximum and minimum values
if eValFloat < minVal {
minVal = eValFloat
}
if eValFloat > maxVal {
maxVal = eValFloat
}
}
}
rangeStat := &structs.RangeStat{}
rangeStatVal, exists := runningEvalStats[measureAgg.String()]
if !exists {
rangeStat.Min = minVal
rangeStat.Max = maxVal
} else {
rangeStat = rangeStatVal.(*structs.RangeStat)
if rangeStat.Min > minVal {
rangeStat.Min = minVal
}
if rangeStat.Max < maxVal {
rangeStat.Max = maxVal
}
}
runningEvalStats[measureAgg.String()] = rangeStat
rangeVal := rangeStat.Max - rangeStat.Min
enclosure, exists := measureResults[measureAgg.String()]
if !exists {
enclosure = utils.CValueEnclosure{
Dtype: utils.SS_DT_FLOAT,
CVal: rangeVal,
}
measureResults[measureAgg.String()] = enclosure
}
eValFloat, err := enclosure.GetFloatValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForRange: Attempted to perform aggregate min(), but the column %s is not a float value", fields[0])
}
if eValFloat < rangeVal {
enclosure.CVal = rangeVal
measureResults[measureAgg.String()] = enclosure
}
return nil
}
func ComputeAggEvalForSum(measureAgg *structs.MeasureAggregator, sstMap map[string]*structs.SegStats, measureResults map[string]utils.CValueEnclosure) error {
fields := measureAgg.ValueColRequest.GetFields()
if len(fields) != 1 {
return fmt.Errorf("ComputeAggEvalForSum: Incorrect number of fields for aggCol: %v", measureAgg.String())
}
sst, ok := sstMap[fields[0]]
if !ok {
return fmt.Errorf("ComputeAggEvalForSum: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
fieldToValue := make(map[string]utils.CValueEnclosure)
sumVal := float64(0)
for _, eVal := range sst.Records {
fieldToValue[fields[0]] = *eVal
boolResult, err := measureAgg.ValueColRequest.BooleanExpr.Evaluate(fieldToValue)
if err != nil {
return fmt.Errorf("ComputeAggEvalForSum: there are some errors in the eval function that is inside the sum function: %v", err)
}
if boolResult {
eValFloat, err := eVal.GetFloatValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForSum: can not get the float value: %v", err)
}
sumVal += eValFloat
}
}
enclosure, exists := measureResults[measureAgg.String()]
if !exists {
enclosure = utils.CValueEnclosure{
Dtype: utils.SS_DT_FLOAT,
CVal: float64(0),
}
measureResults[measureAgg.String()] = enclosure
}
eValFloat, err := enclosure.GetFloatValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForSum: Attempted to perform aggregate min(), but the column %s is not a float value", fields[0])
}
enclosure.CVal = eValFloat + sumVal
measureResults[measureAgg.String()] = enclosure
return nil
}
func ComputeAggEvalForCount(measureAgg *structs.MeasureAggregator, sstMap map[string]*structs.SegStats, measureResults map[string]utils.CValueEnclosure) error {
countVal := int64(0)
fields := measureAgg.ValueColRequest.GetFields()
if len(fields) == 0 {
return fmt.Errorf("ComputeAggEvalForCount: Incorrect number of fields for aggCol: %v", measureAgg.String())
}
sst, ok := sstMap[fields[0]]
if !ok {
return fmt.Errorf("ComputeAggEvalForCount: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
length := len(sst.Records)
for i := 0; i < length; i++ {
fieldToValue := make(map[string]utils.CValueEnclosure)
// Initialize fieldToValue
for _, field := range fields {
sst, ok := sstMap[field]
if !ok {
return fmt.Errorf("ComputeAggEvalForCount: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
if i >= len(sst.Records) {
return fmt.Errorf("ComputeAggEvalForCount: Incorrect length of field: %v for aggCol: %v", field, measureAgg.String())
}
fieldToValue[field] = *sst.Records[i]
}
boolResult, err := measureAgg.ValueColRequest.BooleanExpr.Evaluate(fieldToValue)
if err != nil {
return fmt.Errorf("ComputeAggEvalForCount: there are some errors in the eval function that is inside the count function: %v", err)
}
if boolResult {
countVal++
}
}
enclosure, exists := measureResults[measureAgg.String()]
if !exists {
enclosure = utils.CValueEnclosure{
Dtype: utils.SS_DT_SIGNED_NUM,
CVal: int64(0),
}
measureResults[measureAgg.String()] = enclosure
}
eVal, err := enclosure.GetValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForCount: Attempted to perform aggregate min(), but the column %s is not a float value", fields[0])
}
enclosure.CVal = eVal.(int64) + countVal
measureResults[measureAgg.String()] = enclosure
return nil
}
func ComputeAggEvalForAvg(measureAgg *structs.MeasureAggregator, sstMap map[string]*structs.SegStats, measureResults map[string]utils.CValueEnclosure, runningEvalStats map[string]interface{}) error {
fields := measureAgg.ValueColRequest.GetFields()
if len(fields) != 1 {
return fmt.Errorf("ComputeAggEvalForAvg: Incorrect number of fields for aggCol: %v", measureAgg.String())
}
sst, ok := sstMap[fields[0]]
if !ok {
return fmt.Errorf("ComputeAggEvalForAvg: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
fieldToValue := make(map[string]utils.CValueEnclosure)
sumVal := float64(0)
countVal := int64(0)
for _, eVal := range sst.Records {
fieldToValue[fields[0]] = *eVal
boolResult, err := measureAgg.ValueColRequest.BooleanExpr.Evaluate(fieldToValue)
if err != nil {
return fmt.Errorf("ComputeAggEvalForAvg: there are some errors in the eval function that is inside the avg function: %v", err)
}
if boolResult {
eValFloat, err := eVal.GetFloatValue()
if err != nil {
return fmt.Errorf("ComputeAggEvalForAvg: can not get the float value: %v", err)
}
sumVal += eValFloat
countVal++
}
}
avgStat := &structs.AvgStat{}
avgStatVal, exists := runningEvalStats[measureAgg.String()]
if !exists {
avgStat.Sum = sumVal
avgStat.Count = countVal
} else {
avgStat = avgStatVal.(*structs.AvgStat)
avgStat.Sum += sumVal
avgStat.Count += countVal
}
runningEvalStats[measureAgg.String()] = avgStat
measureResults[measureAgg.String()] = utils.CValueEnclosure{
Dtype: utils.SS_DT_FLOAT,
CVal: avgStat.Sum / float64(avgStat.Count),
}
return nil
}
func ComputeAggEvalForCardinality(measureAgg *structs.MeasureAggregator, sstMap map[string]*structs.SegStats, measureResults map[string]utils.CValueEnclosure, runningEvalStats map[string]interface{}) error {
fields := measureAgg.ValueColRequest.GetFields()
if len(fields) == 0 {
return fmt.Errorf("ComputeAggEvalForCount: Incorrect number of fields for aggCol: %v", measureAgg.String())
}
sst, ok := sstMap[fields[0]]
if !ok {
return fmt.Errorf("ComputeAggEvalForCount: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
strSet := make(map[string]struct{}, 0)
valuesStrSetVal, exists := runningEvalStats[measureAgg.String()]
if !exists {
runningEvalStats[measureAgg.String()] = make(map[string]struct{}, 0)
} else {
strSet, ok = valuesStrSetVal.(map[string]struct{})
if !ok {
return fmt.Errorf("ComputeAggEvalForCardinality: can not convert strSet for aggCol: %v", measureAgg.String())
}
}
length := len(sst.Records)
for i := 0; i < length; i++ {
fieldToValue := make(map[string]utils.CValueEnclosure)
// Initialize fieldToValue
for _, field := range fields {
sst, ok := sstMap[field]
if !ok {
return fmt.Errorf("ComputeAggEvalForCount: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
if i >= len(sst.Records) {
return fmt.Errorf("ComputeAggEvalForCount: Incorrect length of field: %v for aggCol: %v", field, measureAgg.String())
}
fieldToValue[field] = *sst.Records[i]
}
cellValueStr, err := measureAgg.ValueColRequest.EvaluateToString(fieldToValue)
if err != nil {
return fmt.Errorf("ComputeAggEvalForCount: there are some errors in the eval function that is inside the cardinality function: %v", err)
}
strSet[cellValueStr] = struct{}{}
}
measureResults[measureAgg.String()] = utils.CValueEnclosure{
Dtype: utils.SS_DT_SIGNED_NUM,
CVal: int64(len(strSet)),
}
return nil
}
func ComputeAggEvalForValues(measureAgg *structs.MeasureAggregator, sstMap map[string]*structs.SegStats, measureResults map[string]utils.CValueEnclosure, strSet map[string]struct{}) error {
fields := measureAgg.ValueColRequest.GetFields()
if len(fields) == 0 {
return fmt.Errorf("ComputeAggEvalForValues: Incorrect number of fields for aggCol: %v", measureAgg.String())
}
sst, ok := sstMap[fields[0]]
if !ok {
return fmt.Errorf("ComputeAggEvalForValues: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
length := len(sst.Records)
for i := 0; i < length; i++ {
fieldToValue := make(map[string]utils.CValueEnclosure)
// Initialize fieldToValue
for _, field := range fields {
sst, ok := sstMap[field]
if !ok {
return fmt.Errorf("ComputeAggEvalForValues: applyAggOpOnSegments sstMap was nil for aggCol %v", measureAgg.MeasureCol)
}
if i >= len(sst.Records) {
return fmt.Errorf("ComputeAggEvalForValues: Incorrect length of field: %v for aggCol: %v", field, measureAgg.String())
}
fieldToValue[field] = *sst.Records[i]
}
cellValueStr, err := measureAgg.ValueColRequest.EvaluateToString(fieldToValue)
if err != nil {
return fmt.Errorf("ComputeAggEvalForValues: there are some errors in the eval function that is inside the values function: %v", err)
}
strSet[cellValueStr] = struct{}{}
}
uniqueStrings := make([]string, 0)
for str := range strSet {
uniqueStrings = append(uniqueStrings, str)
}
sort.Strings(uniqueStrings)
strVal := strings.Join(uniqueStrings, " ")
measureResults[measureAgg.String()] = utils.CValueEnclosure{
Dtype: utils.SS_DT_STRING,
CVal: strVal,
}
return nil
}
func AddMeasureAggInRunningStatsForCount(m *structs.MeasureAggregator, allConvertedMeasureOps *[]*structs.MeasureAggregator, allReverseIndex *[]int, colToIdx map[string][]int, idx int) (int, error) {
fields := m.ValueColRequest.GetFields()
if len(fields) == 0 {
return idx, fmt.Errorf("AddMeasureAggInRunningStatsForCount: Incorrect number of fields for aggCol: %v", m.String())
}
// Use the index of agg to map to the corresponding index of the runningStats result, so that we can determine which index of the result set contains the result we need.
*allReverseIndex = append(*allReverseIndex, idx)
for _, field := range fields {
if _, ok := colToIdx[field]; !ok {
colToIdx[field] = make([]int, 0)
}
colToIdx[field] = append(colToIdx[field], idx)
*allConvertedMeasureOps = append(*allConvertedMeasureOps, &structs.MeasureAggregator{
MeasureCol: field,
MeasureFunc: utils.Count,
ValueColRequest: m.ValueColRequest,
StrEnc: m.StrEnc,
})
idx++
}
return idx, nil
}
func AddMeasureAggInRunningStatsForAvg(m *structs.MeasureAggregator, allConvertedMeasureOps *[]*structs.MeasureAggregator, allReverseIndex *[]int, colToIdx map[string][]int, idx int) (int, error) {
fields := m.ValueColRequest.GetFields()
if len(fields) != 1 {
return idx, fmt.Errorf("AddMeasureAggInRunningStatsForAvg: Incorrect number of fields for aggCol: %v", m.String())
}
field := fields[0]
if _, ok := colToIdx[field]; !ok {
colToIdx[field] = make([]int, 0)
}
// We need to use sum() and count() to calculate the avg()
*allReverseIndex = append(*allReverseIndex, idx)
colToIdx[field] = append(colToIdx[field], idx)
*allConvertedMeasureOps = append(*allConvertedMeasureOps, &structs.MeasureAggregator{
MeasureCol: field,
MeasureFunc: utils.Sum,
ValueColRequest: m.ValueColRequest,
StrEnc: m.StrEnc,
})
idx++
*allReverseIndex = append(*allReverseIndex, idx)
colToIdx[field] = append(colToIdx[field], idx)
*allConvertedMeasureOps = append(*allConvertedMeasureOps, &structs.MeasureAggregator{
MeasureCol: field,
MeasureFunc: utils.Count,
ValueColRequest: m.ValueColRequest,
StrEnc: m.StrEnc,
})
idx++
return idx, nil
}
// Record the index of range() in runningStats; the index is idx
// To calculate the range(), we need both the min() and max(), which require two columns to store them
// Since it is the runningStats not the stats for results, we can use one extra col to store the min/max
// idx stores the result of min, and idx+1 stores the result of max.
func AddMeasureAggInRunningStatsForRange(m *structs.MeasureAggregator, allConvertedMeasureOps *[]*structs.MeasureAggregator, allReverseIndex *[]int, colToIdx map[string][]int, idx int) (int, error) {
measureCol := m.MeasureCol
if m.ValueColRequest != nil {
fields := m.ValueColRequest.GetFields()
if len(fields) != 1 {
return idx, fmt.Errorf("AddMeasureAggInRunningStatsForRange: Incorrect number of fields for aggCol: %v", m.String())
}
measureCol = fields[0]
}
if _, ok := colToIdx[measureCol]; !ok {
colToIdx[measureCol] = make([]int, 0)
}
*allReverseIndex = append(*allReverseIndex, idx)
colToIdx[measureCol] = append(colToIdx[measureCol], idx)
*allConvertedMeasureOps = append(*allConvertedMeasureOps, &structs.MeasureAggregator{
MeasureCol: measureCol,
MeasureFunc: utils.Min,
ValueColRequest: m.ValueColRequest,
StrEnc: m.StrEnc,
})
idx++
*allReverseIndex = append(*allReverseIndex, idx)
colToIdx[measureCol] = append(colToIdx[measureCol], idx)
*allConvertedMeasureOps = append(*allConvertedMeasureOps, &structs.MeasureAggregator{
MeasureCol: measureCol,
MeasureFunc: utils.Max,
ValueColRequest: m.ValueColRequest,
StrEnc: m.StrEnc,
})
idx++
return idx, nil
}
func AddMeasureAggInRunningStatsForValuesOrCardinality(m *structs.MeasureAggregator, allConvertedMeasureOps *[]*structs.MeasureAggregator, allReverseIndex *[]int, colToIdx map[string][]int, idx int) (int, error) {
fields := m.ValueColRequest.GetFields()
if len(fields) == 0 {
return idx, fmt.Errorf("AddMeasureAggInRunningStatsForValuesOrCardinality: Incorrect number of fields for aggCol: %v", m.String())
}
// Use the index of agg to map to the corresponding index of the runningStats result, so that we can determine which index of the result set contains the result we need.
*allReverseIndex = append(*allReverseIndex, idx)
for _, field := range fields {
if _, ok := colToIdx[field]; !ok {
colToIdx[field] = make([]int, 0)
}
colToIdx[field] = append(colToIdx[field], idx)
*allConvertedMeasureOps = append(*allConvertedMeasureOps, &structs.MeasureAggregator{
MeasureCol: field,
MeasureFunc: utils.Values,
ValueColRequest: m.ValueColRequest,
StrEnc: m.StrEnc,
})
idx++
}
return idx, nil
}
// Determine if cols used by eval statements or not
func DetermineAggColUsage(measureAgg *structs.MeasureAggregator, aggCols map[string]bool, aggColUsage map[string]utils.AggColUsageMode, valuesUsage map[string]bool) {
if measureAgg.ValueColRequest != nil {
for _, field := range measureAgg.ValueColRequest.GetFields() {
aggCols[field] = true
colUsage, exists := aggColUsage[field]
if exists {
if colUsage == utils.NoEvalUsage {
aggColUsage[field] = utils.BothUsage
}
} else {
aggColUsage[field] = utils.WithEvalUsage
}
}
measureAgg.MeasureCol = measureAgg.StrEnc
} else {
aggCols[measureAgg.MeasureCol] = true
if measureAgg.MeasureFunc == utils.Values {
valuesUsage[measureAgg.MeasureCol] = true
}
colUsage, exists := aggColUsage[measureAgg.MeasureCol]
if exists {
if colUsage == utils.WithEvalUsage {
aggColUsage[measureAgg.MeasureCol] = utils.BothUsage
}
} else {
aggColUsage[measureAgg.MeasureCol] = utils.NoEvalUsage
}
}
}