[ https://issues.apache.org/jira/browse/SPARK-4689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268720#comment-14268720
]
Bibudh Lahiri edited comment on SPARK-4689 at 1/12/15 2:13 AM:
---------------------------------------------------------------
I'd like to work on this issue, but would need some details. I looked into ./sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala
where the unionAll method is defined as
def unionAll(otherPlan: SchemaRDD) =
new SchemaRDD(sqlContext, Union(logicalPlan, otherPlan.logicalPlan))
There is no implementation of union() in SchemaRDD itself and and the API says it is inherited
from RDD. I took two different SchemaRDD objects and applied union on them (it is in my fork
at https://github.com/bibudhlahiri/spark/blob/master/dev/audit-release/sbt_app_schema_rdd/src/main/scala/SchemaRDDApp.scala
) , and the resultant object is of class UnionRDD. I am thinking of overriding union() in
SchemaRDD to return a SchemaRDD, please let me know what you think.
was (Author: bibudh):
I'd like to work on this issue, but would need some details. I looked into ./sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala
where the unionAll method is defined as
def unionAll(otherPlan: SchemaRDD) =
new SchemaRDD(sqlContext, Union(logicalPlan, otherPlan.logicalPlan))
Are we looking for an implementation of union here (keeping duplicates only once), in addition
to unionAll (keeping duplicates both the times)?
> Unioning 2 SchemaRDDs should return a SchemaRDD in Python, Scala, and Java
> --------------------------------------------------------------------------
>
> Key: SPARK-4689
> URL: https://issues.apache.org/jira/browse/SPARK-4689
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.1.0
> Reporter: Chris Fregly
> Priority: Minor
> Labels: starter
>
> Currently, you need to use unionAll() in Scala.
> Python does not expose this functionality at the moment.
> The current work around is to use the UNION ALL HiveQL functionality detailed here:
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Union
--
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
|