We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fa6cf commit 2fdf903Copy full SHA for 2fdf903
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/nullFunctions.scala
@@ -37,7 +37,9 @@ case class Coalesce(children: Seq[Expression]) extends Expression {
37
def dataType = if (resolved) {
38
children.head.dataType
39
} else {
40
- throw new UnresolvedException(this, "Coalesce cannot have children of different types.")
+ val childTypes = children.map(c => s"$c: ${c.dataType}").mkString(", ")
41
+ throw new UnresolvedException(
42
+ this, "Coalesce cannot have children of different types. $childTypes")
43
}
44
45
override def eval(input: Row): Any = {
0 commit comments