fix: s3 sql parse error for colums as with quotes (#18765)

This commit is contained in:
jiuker
2024-01-10 01:19:11 +08:00
committed by GitHub
parent 3a90af0bcd
commit a89e0bab7d
3 changed files with 19 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ type JSONPath struct {
// AliasedExpression is an expression that can be optionally named
type AliasedExpression struct {
Expression *Expression `parser:"@@"`
As string `parser:"[ \"AS\" @Ident ]"`
As string `parser:"[ \"AS\" @Ident | \"AS\" @LitString ]"`
}
// Grammar for Expression