create table test (id int, name string, year int) partitioned by (country string) row format delimited fields terminated by ',';
load data local inpath '/home/training/movietable1' into table test partition
(country = 'GB');
load data local inpath '/home/training/movietable2' into table test partition
(country = 'US');
hive> select * from test where country = 'US';
OK 3 Toy Story 2001 US 4 spiderman 2010 US Time taken: 0.15 seconds hive> select * from test where country = 'GB'; OK 1 jumanji 1990 GB 2 titanic 2000 GB Time taken: 0.12 seconds