I believe this should work if you run srdd1.unionAll(srdd2). Both RDDs must have the same schema.
On Wed, Aug 20, 2014 at 11:30 PM, Evan Chan <velvia.git...@gmail.com> wrote: > Is it possible to merge two cached Spark SQL tables into a single > table so it can queried with one SQL statement? > > ie, can you do schemaRdd1.union(schemaRdd2), then register the new > schemaRdd and run a query over it? > > Ideally, both schemaRdd1 and schemaRdd2 would be cached, so the union > should run cached too. > > thanks, > Evan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >