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

Deborah Siegel commented on SPARK-9318:
---------------------------------------

Narine, just want to offer that I haven't replicated that problem. 
 
x <- data.frame(k1 = c(NA,NA,3,4,5), k2 = c(1,NA,NA,4,5), data = 1:5)
y <- data.frame(k1 = c(NA,2,NA,4,5), k2 = c(NA,NA,3,4,5), data = 1:5)
xdf <- createDataFrame(sqlContext, x) 
ydf <- createDataFrame(sqlContext, y) 
res <- join(xdf,ydf)
head(res)
  k1 k2 data k1 k2 data
1 NA  1    1 NA NA    1
2 NA  1    1  2 NA    2
3 NA  1    1 NA  3    3
4 NA  1    1  4  4    4
5 NA  1    1  5  5    5
6 NA NA    2 NA NA    1

> printSchema(res)
root
 |-- k1: double (nullable = true)
 |-- k2: double (nullable = true)
 |-- data: integer (nullable = true)
 |-- k1: double (nullable = true)
 |-- k2: double (nullable = true)
 |-- data: integer (nullable = true)

> Add `merge` as synonym for join
> -------------------------------
>
>                 Key: SPARK-9318
>                 URL: https://issues.apache.org/jira/browse/SPARK-9318
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SparkR
>            Reporter: Shivaram Venkataraman
>            Assignee: Hossein Falaki
>             Fix For: 1.5.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to