mirror of
https://github.com/minio/minio.git
synced 2025-03-20 12:34:16 -04:00
COUNT() function in select should return an int (#7243)
This commit is contained in:
parent
6d778a883f
commit
8a405cab2f
@ -277,7 +277,7 @@ func (e *FuncExpr) aggregateRow(r Record) error {
|
|||||||
func (e *FuncExpr) getAggregate() (*Value, error) {
|
func (e *FuncExpr) getAggregate() (*Value, error) {
|
||||||
switch e.getFunctionName() {
|
switch e.getFunctionName() {
|
||||||
case aggFnCount:
|
case aggFnCount:
|
||||||
return FromFloat(float64(e.aggregate.runningCount)), nil
|
return FromInt(e.aggregate.runningCount), nil
|
||||||
|
|
||||||
case aggFnAvg:
|
case aggFnAvg:
|
||||||
if e.aggregate.runningCount == 0 {
|
if e.aggregate.runningCount == 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user