You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jacky Li (JIRA)" <ji...@apache.org> on 2016/06/30 05:15:10 UTC
[jira] [Created] (SPARK-16316) dataframe except API returning wrong
result in spark 1.5.0
Jacky Li created SPARK-16316:
--------------------------------
Summary: dataframe except API returning wrong result in spark 1.5.0
Key: SPARK-16316
URL: https://issues.apache.org/jira/browse/SPARK-16316
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 1.5.0
Reporter: Jacky Li
Version: spark 1.5.0
Use case: use except API to do subtract between two dataframe
scala> val dfa = sc.parallelize(1 to 100).map(x => (x, x)).toDF("i", "j")
dfa: org.apache.spark.sql.DataFrame = [i: int, j: int]
scala> val dfb = sc.parallelize(1 to 10).map(x => (x, x)).toDF("i", "j")
dfb: org.apache.spark.sql.DataFrame = [i: int, j: int]
scala> dfa.except(dfb).count
res13: Long = 0
It should return 90 instead of 0
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org