Skip to content

Commit 182449b

Browse files
committed
address comments
1 parent e92185c commit 182449b

File tree

1 file changed

+3
-3
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser

1 file changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ class AstBuilder(conf: SQLConf) extends SqlBaseBaseVisitor[AnyRef] with Logging
293293
case cmp @ BinaryComparison(UnresolvedAttribute(name :: Nil), constant: Literal) =>
294294
cmp
295295
case bc @ BinaryComparison(constant: Literal, _) =>
296-
throw new ParseException("Literal " + constant
297-
+ " is supported only on the rigth-side.", ctx)
296+
throw new ParseException(s"Literal $constant is supported only on the rigth-side.", ctx)
298297
case _ =>
299-
throw new ParseException("Invalid partition filter specification", ctx)
298+
throw new ParseException(
299+
s"Invalid partition filter specification (${pVal.getText}).", ctx)
300300
}
301301
}
302302
parts

0 commit comments

Comments
 (0)