mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
wip
This commit is contained in:
parent
efe5ec623c
commit
d7def4aa2d
2 changed files with 2 additions and 2 deletions
|
@ -815,7 +815,7 @@ func TestParseQuerySuccess(t *testing.T) {
|
||||||
f(`foo|fields *`, `foo | fields *`)
|
f(`foo|fields *`, `foo | fields *`)
|
||||||
f(`foo | fields bar`, `foo | fields bar`)
|
f(`foo | fields bar`, `foo | fields bar`)
|
||||||
f(`foo|FIELDS bar,Baz , "a,b|c"`, `foo | fields bar, Baz, "a,b|c"`)
|
f(`foo|FIELDS bar,Baz , "a,b|c"`, `foo | fields bar, Baz, "a,b|c"`)
|
||||||
f(`foo | Fields x.y:z/a, _b$c`, `foo | fields "x.y:z/a", "_b$c"`)
|
f(`foo | Fields x.y, "abc:z/a", _b$c`, `foo | fields x.y, "abc:z/a", "_b$c"`)
|
||||||
|
|
||||||
// multiple fields pipes
|
// multiple fields pipes
|
||||||
f(`foo | fields bar | fields baz, abc`, `foo | fields bar | fields baz, abc`)
|
f(`foo | fields bar | fields baz, abc`, `foo | fields bar | fields baz, abc`)
|
||||||
|
|
|
@ -512,7 +512,7 @@ func parseFieldName(lex *lexer) (string, error) {
|
||||||
if lex.isKeyword(",", "(", ")", "[", "]", "|", "") {
|
if lex.isKeyword(",", "(", ")", "[", "]", "|", "") {
|
||||||
return "", fmt.Errorf("unexpected token: %q", lex.token)
|
return "", fmt.Errorf("unexpected token: %q", lex.token)
|
||||||
}
|
}
|
||||||
token := getCompoundToken(lex)
|
token := getCompoundPhrase(lex, true)
|
||||||
return token, nil
|
return token, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue