You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2017/05/02 00:07:06 UTC
[jira] [Assigned] (SPARK-20463) Add support for IS [NOT] DISTINCT
FROM to SPARK SQL
[ https://issues.apache.org/jira/browse/SPARK-20463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li reassigned SPARK-20463:
-------------------------------
Assignee: Michael Styles
> Add support for IS [NOT] DISTINCT FROM to SPARK SQL
> ---------------------------------------------------
>
> Key: SPARK-20463
> URL: https://issues.apache.org/jira/browse/SPARK-20463
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Michael Styles
> Assignee: Michael Styles
> Fix For: 2.3.0
>
>
> Add support for the SQL standard distinct predicate to SPARK SQL.
> {noformat}
> <expression> IS [NOT] DISTINCT FROM <expression>
> {noformat}
> {noformat}
> data = [(10, 20), (30, 30), (40, None), (None, None)]
> df = sc.parallelize(data).toDF(["c1", "c2"])
> df.createTempView("df")
> spark.sql("select c1, c2 from df where c1 is not distinct from c2").collect()
> [Row(c1=30, c2=30), Row(c1=None, c2=None)]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org