Skip to content

Commit d18742b

Browse files
committed
to fix parser bug
1 parent 3123ebc commit d18742b

File tree

1 file changed

+3
-1
lines changed
  • sql/src/main/scala/app/softnetwork/elastic/sql/parser

1 file changed

+3
-1
lines changed

sql/src/main/scala/app/softnetwork/elastic/sql/parser/Parser.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,15 @@ trait Parser
106106

107107
def separator: PackratParser[Delimiter] = "," ^^ (_ => Separator)
108108

109-
def valueExpr: PackratParser[PainlessScript] =
109+
def valueExpr: PackratParser[PainlessScript] = {
110110
// the order is important here
111+
identifierWithWindowFunction |
111112
identifierWithTransformation | // transformations applied to an identifier
112113
identifierWithIntervalFunction |
113114
identifierWithFunction | // fonctions applied to an identifier
114115
identifierWithValue |
115116
identifier
117+
}
116118

117119
implicit def functionAsIdentifier(mf: Function): Identifier = mf match {
118120
case id: Identifier => id

0 commit comments

Comments
 (0)