Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[SPARK-24951][SQL] Table valued functions should throw AnalysisException
  • Loading branch information
rxin committed Jul 31, 2018
commit 08a6b7fc1d2a1a6149c4da2ca1657258347fd18f
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ object ResolveTableValuedFunctions extends Rule[LogicalPlan] {
: (ArgumentList, Seq[Any] => LogicalPlan) = {
(ArgumentList(args: _*),
pf orElse {
case args =>
case arguments =>
throw new IllegalArgumentException(
"Invalid arguments for resolved function: " + args.mkString(", "))
"Invalid arguments for resolved function: " + arguments.mkString(", "))
})
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ select * from range(1, null)
-- !query 6 schema
struct<>
-- !query 6 output
java.lang.IllegalArgumentException
org.apache.spark.sql.AnalysisException
Invalid arguments for resolved function: 1, null


Expand Down