Skip to content

Commit

Permalink
Update 2.1 grammar for LAG & LEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoLaval committed Oct 4, 2024
1 parent 1c0ca92 commit e6c911f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2.1/src/main/antlr4/org/sdmx/vtl/Vtl.g4
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ aggrOperatorsGrouping:
| FIRST_VALUE
| LAST_VALUE)
LPAREN expr OVER LPAREN (partition=partitionByClause? orderBy=orderByClause? windowing=windowingClause?)RPAREN RPAREN #anSimpleFunction
| op=(LAG |LEAD) LPAREN expr (COMMA offet=signedInteger(defaultValue=scalarItem)?)? OVER LPAREN (partition=partitionByClause? orderBy=orderByClause) RPAREN RPAREN # lagOrLeadAn
| op=(LAG |LEAD) LPAREN expr (COMMA offset=signedInteger(COMMA defaultValue=scalarItem)?)? OVER LPAREN (partition=partitionByClause? orderBy=orderByClause) RPAREN RPAREN # lagOrLeadAn
| op=RATIO_TO_REPORT LPAREN expr OVER LPAREN (partition=partitionByClause) RPAREN RPAREN # ratioToReportAn
;

Expand Down

0 comments on commit e6c911f

Please sign in to comment.