Skip to content

Commit bc30530

Browse files
committed
[SPARK-20304][SQL] AssertNotNull should not include path in string representation
1 parent b14bfc3 commit bc30530

File tree

1 file changed

+2
-0
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects

1 file changed

+2
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,8 @@ case class AssertNotNull(child: Expression, walkedTypePath: Seq[String] = Nil)
996996
override def foldable: Boolean = false
997997
override def nullable: Boolean = false
998998

999+
override def flatArguments: Iterator[Any] = Iterator(child)
1000+
9991001
private val errMsg = "Null value appeared in non-nullable field:" +
10001002
walkedTypePath.mkString("\n", "\n", "\n") +
10011003
"If the schema is inferred from a Scala tuple/case class, or a Java bean, " +

0 commit comments

Comments
 (0)