[ https://issues.apache.org/jira/browse/SPARK-12867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105725#comment-15105725 ]
Apache Spark commented on SPARK-12867: -------------------------------------- User 'gatorsmile' has created a pull request for this issue: https://github.com/apache/spark/pull/10812 > 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