From 8a405cab2fd35529705ad1d0432a7c20b92bb0ed Mon Sep 17 00:00:00 2001 From: Aditya Manthramurthy Date: Wed, 13 Feb 2019 16:32:59 -0800 Subject: [PATCH] COUNT() function in select should return an int (#7243) --- pkg/s3select/sql/aggregation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/s3select/sql/aggregation.go b/pkg/s3select/sql/aggregation.go index f8ba79c3f..012dd3c8d 100644 --- a/pkg/s3select/sql/aggregation.go +++ b/pkg/s3select/sql/aggregation.go @@ -277,7 +277,7 @@ func (e *FuncExpr) aggregateRow(r Record) error { func (e *FuncExpr) getAggregate() (*Value, error) { switch e.getFunctionName() { case aggFnCount: - return FromFloat(float64(e.aggregate.runningCount)), nil + return FromInt(e.aggregate.runningCount), nil case aggFnAvg: if e.aggregate.runningCount == 0 {