I am new to Hive .I have a main table t1 and temp table t2. Temp table gets uploaded by incoming data everyday. Incoming data can be updated records as well as new records.
table t2(temp): table t1(main)
id name id name
1 vinni 1 vikki
3 anna 2 amita
I want my main table to have old records, updated records from temp table and new records from temp table.
My main table should have records like below:
id name
1 vinni
2 amita
3 anna
I tried doing it by full outer join but its not the optimal solution. So how can I achieve this by using left outer join. At the end I do not want my temp table records and the table can be deleted after its data gets loaded to main table.