Skip to content
Prev Previous commit
Next Next commit
style change
  • Loading branch information
imback82 committed Oct 22, 2019
commit 3fd447d6c96fe48d5ac37a828096b6cf8835d52c
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,7 @@ class AstBuilder(conf: SQLConf) extends SqlBaseBaseVisitor[AnyRef] with Logging
checkDuplicateClauses(ctx.PROPERTIES, "WITH PROPERTIES", ctx)
checkDuplicateClauses(ctx.DBPROPERTIES, "WITH DBPROPERTIES", ctx)

if (!ctx.PROPERTIES.isEmpty() && !ctx.DBPROPERTIES.isEmpty()) {
if (!ctx.PROPERTIES.isEmpty && !ctx.DBPROPERTIES.isEmpty) {
throw new ParseException(s"Either PROPERTIES or DBPROPERTIES is allowed.", ctx)
}

Expand Down