Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
for JS count Aggs, do a postAgg Sum in Spark
Browse files Browse the repository at this point in the history
  • Loading branch information
Harish Butani committed Sep 16, 2016
1 parent b6092c5 commit a44c81c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PostAggregate(val druidOpSchema : DruidOperatorSchema) {
case JavascriptAggregationSpec(_, aggnm, _, _, _, _) if aggnm.startsWith("SUM") =>
Some(Sum(attrRef(dOpAttr)))
case JavascriptAggregationSpec(_, aggnm, _, _, _, _) if aggnm.startsWith("COUNT") =>
Some(Count(attrRef(dOpAttr)))
Some(Sum(attrRef(dOpAttr)))
case _ => None
}
}
Expand Down

0 comments on commit a44c81c

Please sign in to comment.