I can update single column but i can't update multiple columns which is referenced from another table.
I enabled all ACID properties to support hive (1.2.1 ) table updates.
I have two tables,
Table1:
schema:
create table table1(emp_id int,emp_name string, etime timestamp);
data:
emp_id | emp_name | etime
1 | david | 2016-01-08 12:27:30
2 | john | 2016-01-08 12:27:45
Table 2
schema :
create table table2(emp_id int,emp_name string,etime timestamp) set clustered by (emp_id) into 4 buckets stored as orc TBLPROPERTIES('transactional'='true');
data:
emp_id | emp_name | etime
1 | davi | 2016-01-08 12:02:30
2 | johny | 2016-01-08 11:20:45
3 | kiran | 2016-01-08 11:01:36
Now i want to update all columns in table2 based on the table1 data like comparing emp_id of both the tables. I want output as following
Table2:
emp_id | emp_name | etime
1 | david | 2016-01-08 12:27:30
2 | john | 2016-01-08 12:27:45
3 | kiran | 2016-01-08 11:01:36