[Solved] Hive error with attempt to do update table that is not transactional

lydias Asks: Hive error with attempt to do update table that is not transactional
I’m trying to update a temporary table on hive by using the following command:

Code:
alter table para1 add columns(log_flag int);
update para1 set log_flag = (
  case 
            when name like '%LANDING__TIME' then 1 
            when name like '%LOGIN_START_TIME' then 2
            when name like '%LOGIN_TIME' then 3
            else 4
  end
  );

Following is the error I received:

ERROR: Execute error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException [Error 10297]: Attempt to do update or delete on table df.para1 that is not transactional

This prevents me to update the table with the new conditional variable log_flag, and I’m really not sure what is the cause.

Thank you for any help!

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.