You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by SRK <sw...@gmail.com> on 2016/02/10 02:22:13 UTC

How to use a register temp table inside mapPartitions of an RDD

hi,

How to use a registerTempTable to register an RDD as a temporary table and
use it inside mapPartitions of a different RDD?


Thanks,
Swetha



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/How-to-use-a-register-temp-table-inside-mapPartitions-of-an-RDD-tp26187.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Re: How to use a register temp table inside mapPartitions of an RDD

Posted by Koert Kuipers <ko...@tresata.com>.
if you mean to both register and use the table while you are inside
mapPartition, i do not think that is possible or advisable. can you join
the data? or broadcast it?

On Tue, Feb 9, 2016 at 8:22 PM, SRK <sw...@gmail.com> wrote:

> hi,
>
> How to use a registerTempTable to register an RDD as a temporary table and
> use it inside mapPartitions of a different RDD?
>
>
> Thanks,
> Swetha
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/How-to-use-a-register-temp-table-inside-mapPartitions-of-an-RDD-tp26187.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>