Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/22075#discussion_r209488846
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
---
@@ -90,6 +90,20 @@ trait CheckAnalysis extends PredicateHelper {
u.failAnalysis(s"Table or view not found: ${u.tableIdentifier}")
case operator: LogicalPlan =>
+ // Check argument data types of higher-order functions downwards
first.
+ // If the arguments of the higher-order functions are resolved but
the type check fails,
+ // the argument functions will not get resolved, but we should
report the argument type
--- End diff --
I'm worried that if we say only `functions`, we might be confused whether
the "function" means the higher-order function or the function as an argument.
WDYT?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]