Skip to content

Commit

Permalink
merge limit clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Feb 8, 2023
1 parent 839d505 commit fef9463
Show file tree
Hide file tree
Showing 6 changed files with 1,063 additions and 1,132 deletions.
4 changes: 1 addition & 3 deletions posthog/hogql/grammar/HogQLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ selectStmt:
groupByClause? (WITH (CUBE | ROLLUP))? (WITH TOTALS)?
havingClause?
orderByClause?
limitByClause?
limitClause?
settingsClause?
;
Expand All @@ -37,8 +36,7 @@ groupByClause: GROUP BY ((CUBE | ROLLUP) LPAREN columnExprList RPAREN | columnEx
havingClause: HAVING columnExpr;
orderByClause: ORDER BY orderExprList;
projectionOrderByClause: ORDER BY columnExprList;
limitByClause: LIMIT limitExpr BY columnExprList;
limitClause: LIMIT limitExpr (WITH TIES)?;
limitClause: LIMIT limitExpr ((WITH TIES) | BY columnExprList)?;
settingsClause: SETTINGS settingExprList;

joinExpr
Expand Down
3 changes: 1 addition & 2 deletions posthog/hogql/grammar/HogQLParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit fef9463

Please sign in to comment.