diff options
| author | Paul Buetow <paul@buetow.org> | 2023-09-05 17:17:38 +0300 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2023-09-07 15:32:31 +0300 |
| commit | f771066f175c7bde9fd5cbcf39ab855afd5d5786 (patch) | |
| tree | 84eb0938a73ceb99326ae140cf1897f5c35567fb /internal/mapr/setcondition.go | |
| parent | 9c77304550d65b8e7c2b724b991eef0dbc13694a (diff) | |
add mapr aggregration on CSV integr test
Diffstat (limited to 'internal/mapr/setcondition.go')
| -rw-r--r-- | internal/mapr/setcondition.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/mapr/setcondition.go b/internal/mapr/setcondition.go index 9dcd690..308a0f4 100644 --- a/internal/mapr/setcondition.go +++ b/internal/mapr/setcondition.go @@ -37,6 +37,13 @@ func makeSetConditions(tokens []token) (set []setCondition, err error) { return sc, nil, err } + // Seems like a quoted string? E.g.: "set $foo = `count(bar)`" + // So don't interpret `count` as a function! + if tokens[2].quotesStripped { + sc.rType = Field + return sc, tokens[3:], nil + } + // Seems like a function call? if strings.HasSuffix(sc.rString, ")") { functionStack, functionArg, err := funcs.NewFunctionStack(tokens[2].str) |
