spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-25402) Null handling in BooleanSimplification
Date Thu, 13 Sep 2018 13:42:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-25402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dongjoon Hyun updated SPARK-25402:
----------------------------------
    Fix Version/s: 2.2.3

> Null handling in BooleanSimplification
> --------------------------------------
>
>                 Key: SPARK-25402
>                 URL: https://issues.apache.org/jira/browse/SPARK-25402
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.2, 2.3.1
>            Reporter: Xiao Li
>            Assignee: Xiao Li
>            Priority: Blocker
>             Fix For: 2.2.3, 2.3.2, 2.4.0
>
>
> SPARK-20350 introduced a bug BooleanSimplification for null handling. For example, the
following case returns a wrong answer. 
> {code}
>     val schema = StructType.fromDDL("a boolean, b int")
>     val rows = Seq(Row(null, 1))
>     val rdd = sparkContext.parallelize(rows)
>     val df = spark.createDataFrame(rdd, schema)
>     checkAnswer(df.where("(NOT a) OR a"), Seq.empty)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message