Answering my own question:

  create table foo_copy like foo;
  insert into foo_copy partition (id) select * from foo where id in (1,2,3);
  export table foo_copy to ‘path’;
  drop table foo_copy;

It would be nice if export could do this automatically, though.

Brian

On Jun 25, 2015, at 11:34 AM, Brian Jeltema <brian.jelt...@digitalenvoy.net> 
wrote:

> Using Hive .13, I would like to export multiple partitions of a table, 
> something conceptually like:
> 
>   EXPORT TABLE foo PARTITION (id=1,2,3) to ‘path’
> 
> Is there any way to accomplish this?
> 
> Brian

Reply via email to