Skip to content

Commit f3fdf57

Browse files
committed
Change error message a bit.
1 parent e20c207 commit f3fdf57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ case class InitializeJavaBean(beanInstance: Expression, setters: Map[String, Exp
12801280
}
12811281
if (methods.isEmpty) {
12821282
throw new NoSuchMethodException(s"""A method named "$name" is not declared """ +
1283-
"in any enclosing class nor any supertype, nor through a static import")
1283+
"in any enclosing class nor any supertype")
12841284
}
12851285
methods.head -> expr
12861286
}

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ObjectExpressionsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class ObjectExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
8282
checkExceptionInExpression[Exception](initializeWithNonexistingMethod,
8383
InternalRow.fromSeq(Seq()),
8484
"""A method named "nonexisting" is not declared in any enclosing class """ +
85-
"nor any supertype, nor through a static import")
85+
"nor any supertype")
8686
}
8787

8888
test("SPARK-23585: UnwrapOption should support interpreted execution") {

0 commit comments

Comments
 (0)