COUNT() function in select should return an int (#7243)

master
Aditya Manthramurthy 6 years ago committed by kannappanr
parent 6d778a883f
commit 8a405cab2f
  1. 2
      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 {

Loading…
Cancel
Save