Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix.
  • Loading branch information
gatorsmile committed Nov 29, 2016
commit 33c10a0994c9802df901f211e1f28c52e34df27f
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ trait NamedExpression extends Expression {
}
}

abstract class Attribute extends LeafExpression with NamedExpression with NullIntolerant {
abstract class Attribute extends LeafExpression with NamedExpression {

override def references: AttributeSet = AttributeSet(this)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1720,6 +1720,11 @@ class DataFrameSuite extends QueryTest with SharedSQLContext {
dates.intersect(widenTypedRows).collect()
}

test("SPARK-17897: Attribute is not NullIntolerant") {
val data = Seq[java.lang.Integer](1, null).toDF("key")
checkAnswer(data.filter("not key is not null"), Row(null))
}

test("SPARK-18070 binary operator should not consider nullability when comparing input types") {
val rows = Seq(Row(Seq(1), Seq(1)))
val schema = new StructType()
Expand Down