3
0

Fix aggregate attribute expr type guessing for functions

This commit is contained in:
Tomaž Jerman
2022-10-11 13:32:43 +02:00
parent 27ff07a14b
commit 7c743da936

View File

@@ -3,6 +3,7 @@ package dal
import (
"context"
"fmt"
"strings"
"github.com/cortezaproject/corteza-server/pkg/filter"
"github.com/cortezaproject/corteza-server/pkg/ql"
@@ -255,7 +256,7 @@ func (def *Aggregate) determineAttrType(base AggregateAttr, ss []AttributeMappin
}
if a.Ref != "" {
tmp := refToGvalExp[a.Ref]
tmp := refToGvalExp[strings.ToLower(a.Ref)]
if tmp == nil || tmp.OutType == nil || tmp.OutTypeUnknown {
return true, a, nil
}