[
https://issues.apache.org/jira/browse/SPARK-21160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ahmed Maher updated SPARK-21160:
--------------------------------
Attachment: image-2019-05-28-10-14-44-534.png
> Filtering rows with "not equal" operator yields unexpected result with null
> rows
> --------------------------------------------------------------------------------
>
> Key: SPARK-21160
> URL: https://issues.apache.org/jira/browse/SPARK-21160
> Project: Spark
> Issue Type: Bug
> Components: PySpark, Spark Core, SQL
> Affects Versions: 2.0.2
> Reporter: Edoardo Vivo
> Priority: Minor
> Attachments: image-2019-05-28-10-14-44-534.png
>
>
> ```
> schema = StructType([StructField("Test", DoubleType())])
> test2 = spark.createDataFrame([[1.0],[1.0],[2.0],[2.0],[None]], schema=schema)
> test2.where("Test != 1").show()
> ```
> This returns only the rows with the value 2, it does not return the null row.
> This should not be the expected behavior, IMO.
> Thank you.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]