Cheng Lian created SPARK-12867: ---------------------------------- Summary: 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 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