|
|
@@ -1290,8 +1290,8 @@ func (a *AWS) ExternalAllocations(start string, end string, aggregators []string
|
|
|
%s,
|
|
|
SUM(line_item_blended_cost) as blended_cost
|
|
|
FROM %s as cost_data
|
|
|
- WHERE (%s='%s') AND line_item_usage_start_date BETWEEN date '%s' AND date '%s'
|
|
|
- GROUP BY %s`, aggregatorNames, filter_column_name, customPricing.AthenaTable, filter_column_name, filterValue, start, end, groupby)
|
|
|
+ WHERE (%s='%s') AND line_item_usage_start_date BETWEEN date '%s' AND date '%s AND %s <> ''
|
|
|
+ GROUP BY %s`, aggregatorNames, filter_column_name, customPricing.AthenaTable, filter_column_name, filterValue, start, end, formattedAggregators[0], groupby)
|
|
|
} else {
|
|
|
lastIdx = len(formattedAggregators) + 2
|
|
|
groupby := generateAWSGroupBy(lastIdx)
|