Repository: spark Updated Branches: refs/heads/branch-2.1 523abfe19 -> 951579382
[SPARK-18442][SQL] Fix nullability of WrapOption. ## What changes were proposed in this pull request? The nullability of `WrapOption` should be `false`. ## How was this patch tested? Existing tests. Author: Takuya UESHIN <[email protected]> Closes #15887 from ueshin/issues/SPARK-18442. (cherry picked from commit 170eeb345f951de89a39fe565697b3e913011768) Signed-off-by: Wenchen Fan <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/95157938 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/95157938 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/95157938 Branch: refs/heads/branch-2.1 Commit: 9515793820c7954d82116238a67e632ea3e783b5 Parents: 523abfe Author: Takuya UESHIN <[email protected]> Authored: Thu Nov 17 11:21:08 2016 +0800 Committer: Wenchen Fan <[email protected]> Committed: Thu Nov 17 11:21:23 2016 +0800 ---------------------------------------------------------------------- .../apache/spark/sql/catalyst/expressions/objects/objects.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/95157938/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala ---------------------------------------------------------------------- diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala index 50e2ac3..0e3d991 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala @@ -341,7 +341,7 @@ case class WrapOption(child: Expression, optType: DataType) override def dataType: DataType = ObjectType(classOf[Option[_]]) - override def nullable: Boolean = true + override def nullable: Boolean = false override def inputTypes: Seq[AbstractDataType] = optType :: Nil --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
