Try unionAll, which is a special method on SchemaRDDs that keeps the schema on 
the results.

Matei

> On Nov 1, 2014, at 3:57 PM, Daniel Mahler <[email protected]> wrote:
> 
> I would like to combine 2 parquet tables I have create.
> I tried:
> 
>       sc.union(sqx.parquetFile("fileA"), sqx.parquetFile("fileB"))
> 
> but that just returns RDD[Row].
> How do I combine them to get a SchemaRDD[Row]?
> 
> thanks
> Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to