Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/22075#discussion_r209488516
--- 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 --
actually, I think it's clearer to say `functions`, instead of `argument
functions`. Sorry for the back and forth.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]