Skip to content

Commit

Permalink
compiler: fast failure if unsupported clauses/expressions exist
Browse files Browse the repository at this point in the history
  • Loading branch information
henryllong committed Apr 10, 2023
1 parent ad4b3a6 commit 959c02d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func (p *Preprocess) Enter(n ast.Node) (node ast.Node, skipChildren bool) {
p.checkSelectStmt(stmt)
case *ast.ShowStmt:
p.checkShowStmt(stmt)
case *ast.GroupByClause:
// FIXME: reject all unsupported clauses/expressions
p.err = errors.Errorf("unsupported clause/expression: %T", n)
}
return n, p.err != nil
}
Expand Down

0 comments on commit 959c02d

Please sign in to comment.