Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/22857#discussion_r228779505 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala --- @@ -2578,4 +2578,45 @@ class DataFrameSuite extends QueryTest with SharedSQLContext { Row ("abc", 1)) } } + + test("SPARK-25860: Replace Literal(null, _) with FalseLiteral whenever possible") { + + def checkPlanIsEmptyLocalScan(df: DataFrame): Unit = df.queryExecution.executedPlan match { --- End diff -- this assumes we run `ConvertToLocalRelation`, let's use `withSQLConf` to make sure this rule is on.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org