consider 2000 year data.
test.csv
country_code,product_code,rpt_period us,crd,2000 us,pcl,2000 us,mtg,2000 in,crd,2000 in,pcl,2000 in,mtg,2000
now i am appending newly generated 2001 records to test.csv. after appending new data to test.csv my data looks like below.
append.csv
country_code,product_code,rpt_period us,crd,2000 us,pcl,2000 us,mtg,2000 in,crd,2000 in,pcl,2000 in,mtg,2000 us,crd,2001 us,pcl,2001 us,mtg,2001 in,crd,2001 in,pcl,2001 in,mtg,2001
Below scenarios are possible in the hive? If yes, please answer questions.
- How to create schema for Partition table
Foousing this data?. and also I want partition columns as country_code and product_code. - For instance, i want to load (from test.csv file records) to table
Foo? using hiveLOAD DATAcomand ? - How to load append.csv (only 2001 records) to table
Foo. this also needs to be done using hiveLOAD DATAcommand
Thanks.