spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-20463) Expose SPARK SQL <=> operator in PySpark
Date Tue, 25 Apr 2017 21:33:04 GMT

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

Apache Spark reassigned SPARK-20463:
------------------------------------

    Assignee:     (was: Apache Spark)

> Expose SPARK SQL <=> operator in PySpark
> ----------------------------------------
>
>                 Key: SPARK-20463
>                 URL: https://issues.apache.org/jira/browse/SPARK-20463
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 2.1.0
>            Reporter: Michael Styles
>
> Expose the SPARK SQL '<=>' operator in Pyspark as a column function called *isNotDistinctFrom*.
For example:
> {panel}
> {noformat}
> data = [(10, 20), (30, 30), (40, None), (None, None)]
> df2 = sc.parallelize(data).toDF("c1", "c2")
> df2.where(df2["c1"].isNotDistinctFrom(df2["c2"]).collect())
> [Row(c1=30, c2=30), Row(c1=None, c2=None)]
> {noformat}
> {panel}



--
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


Mime
View raw message