This commit is contained in:
Aliaksandr Valialkin 2024-05-03 21:41:30 +02:00
parent a4abd688ee
commit f8dcf7be1d
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB
2 changed files with 0 additions and 6 deletions

View file

@ -54,9 +54,6 @@ func parsePipeFields(lex *lexer) (*pipeFields, error) {
if !lex.mustNextToken() {
return nil, fmt.Errorf("missing field name")
}
if lex.isKeyword(",") {
return nil, fmt.Errorf("unexpected ','; expecting field name")
}
field, err := parseFieldName(lex)
if err != nil {
return nil, fmt.Errorf("cannot parse field name: %w", err)

View file

@ -550,9 +550,6 @@ func parseByFields(lex *lexer) ([]*byField, error) {
lex.nextToken()
return bfs, nil
}
if lex.isKeyword(",") {
return nil, fmt.Errorf("unexpected `,`")
}
fieldName, err := parseFieldName(lex)
if err != nil {
return nil, fmt.Errorf("cannot parse field name: %w", err)