Skip to content

Commit

Permalink
Load: Make load SQL option VERIFY can only be set to true (apache#12670)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveYurongSu authored and chrisdutz committed Jun 7, 2024
1 parent 61c7bcc commit d3566a5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,10 @@ private void parseLoadFileAttributeClause(
} else if (ctx.SGLEVEL() != null) {
loadTsFileStatement.setDatabaseLevel(Integer.parseInt(ctx.INTEGER_LITERAL().getText()));
} else if (ctx.VERIFY() != null) {
loadTsFileStatement.setVerifySchema(Boolean.parseBoolean(ctx.boolean_literal().getText()));
if (Boolean.parseBoolean(ctx.boolean_literal().getText())) {
throw new SemanticException("Load option VERIFY can only be set to true.");
}
loadTsFileStatement.setVerifySchema(true);
} else {
throw new SemanticException(
String.format(
Expand Down

0 comments on commit d3566a5

Please sign in to comment.