[ 
https://issues.apache.org/jira/browse/SPARK-12867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Lian updated SPARK-12867:
-------------------------------
    Assignee: Xiao Li

> Nullability of Intersect can be stricter
> ----------------------------------------
>
>                 Key: SPARK-12867
>                 URL: https://issues.apache.org/jira/browse/SPARK-12867
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Cheng Lian
>            Assignee: Xiao Li
>            Priority: Minor
>
> {{Intersect}} doesn't override {{SetOperation.output}}, which is defined as:
> {code}
>   override def output: Seq[Attribute] =
>     left.output.zip(right.output).map { case (leftAttr, rightAttr) =>
>       leftAttr.withNullability(leftAttr.nullable || rightAttr.nullable)
>     }
> {code}
> However, we can replace the {{||}} with {{&&}} for intersection.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to