Skip to content

Commit 21a5f07

Browse files
committed
Fix NoSuchFunctionException constructors.
1 parent e520366 commit 21a5f07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/NoSuchItemException.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class NoSuchPermanentFunctionException(db: String, func: String)
5858

5959
class NoSuchFunctionException(
6060
msg: String,
61-
cause: Option[Throwable] = None) extends AnalysisException(msg, cause = cause) {
61+
cause: Option[Throwable]) extends AnalysisException(msg, cause = cause) {
6262

6363
import org.apache.spark.sql.catalog.v2.CatalogV2Implicits._
6464

@@ -68,8 +68,8 @@ class NoSuchFunctionException(
6868
s"a permanent function registered in the database '$db'.", cause = cause)
6969
}
7070

71-
def this(identifier: Identifier, cause: Option[Throwable]) = {
72-
this(s"Undefined function: ${identifier.quoted}", cause = cause)
71+
def this(identifier: Identifier) = {
72+
this(s"Undefined function: ${identifier.quoted}", cause = None)
7373
}
7474
}
7575

0 commit comments

Comments
 (0)