Xiangrui Meng created SPARK-13484: ------------------------------------- Summary: Filter outer joined result using a non-nullable column Key: SPARK-13484 URL: https://issues.apache.org/jira/browse/SPARK-13484 Project: Spark Issue Type: Bug Components: SQL Affects Versions: 1.6.0, 1.5.2, 2.0.0 Reporter: Xiangrui Meng
Technically speaking, this is not a bug. But {code} val a = sqlContext.range(10).select(col("id"), lit(0).as("count")) val b = sqlContext.range(10).select((col("id") % 3).as("id")).groupBy("id").count() a.join(b, a("id") === b("id"), "left_outer").filter(b("count").isNull).show() {code} returns nothing. This is because `b("count")` is not nullable and the filter condition is always false by static analysis. However, it is common for users to use `a(...)` and `b(...)` to filter the joined result. -- 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