I have tried working with the update statement but I think spark SQL doesn't allow it.
Asked
Active
Viewed 629 times
1
-
You could follow this link to understand ACID transactions in HIVE:https://stackoverflow.com/questions/61329206/why-is-delete-function-not-working-in-hive-shell/61339632#61339632 , I hope it helps. – Chema May 30 '20 at 10:31
1 Answers
1
It depends where and how your data is stored. If your data is stored in HDFS or other kind of object stores(like S3) your data is immutable.
A single option is in case you have your Hive table defined as transactional. In this case the table has to be clustered and stored as ORC.
In other cases unfortunately you can't update. More information about hive transactions you can find here: https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions

Mátyás Kuti-Kreszács
- 116
- 1
- 6