File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments