[ 
https://issues.apache.org/jira/browse/SPARK-22493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16247660#comment-16247660
 ] 

Marco Gaido edited comment on SPARK-22493 at 11/10/17 3:39 PM:
---------------------------------------------------------------

{{NaN}} is not {{null}}. They are different things. If you want to filter 
{{NaN}} you can use the SQL function {{isnan}}.


was (Author: mgaido):
`NaN` is not `null`. They are different things. If you want to filter `NaN` you 
can use the SQL function `isnan`.

> sql null checks for Double.NaN do not work
> ------------------------------------------
>
>                 Key: SPARK-22493
>                 URL: https://issues.apache.org/jira/browse/SPARK-22493
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>         Environment: derby version is 10.14.1.0
>            Reporter: MIkhail Osckin
>            Priority: Minor
>         Attachments: sql_null.png
>
>
> I'm using spark in standalone mode and derbydb for hive-metastore. By some 
> reason i can't filter nan values in my sql queries.
> !sql_null.png|thumbnail!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to