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 {