Skip to content
Snippets Groups Projects
Commit 170eeb34 authored by Takuya UESHIN's avatar Takuya UESHIN Committed by Wenchen Fan
Browse files

[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 <ueshin@happy-camper.st>

Closes #15887 from ueshin/issues/SPARK-18442.
parent 55589987
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment