Skip to content

Commit

Permalink
[Improve][Transforms-v2][ZetaSQLEngine] Remove redundancy code in val…
Browse files Browse the repository at this point in the history
…idateSQL (#4506)
  • Loading branch information
CheneyYin authored Apr 7, 2023
1 parent 17720b5 commit d231368
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ private void validateSQL(Statement statement) {
}
Select select = (Select) statement;
if (!(select.getSelectBody() instanceof PlainSelect)) {
throw new IllegalArgumentException("Unsupported SQL syntax: %s");
}
if (!(select.getSelectBody() instanceof PlainSelect)) {
throw new IllegalArgumentException("Unsupported SQL syntax: %s");
throw new IllegalArgumentException("Unsupported SQL syntax");
}
PlainSelect selectBody = (PlainSelect) select.getSelectBody();

Expand Down

0 comments on commit d231368

Please sign in to comment.