[英]Update a value in Hive Table
I have gone through some of the Stackoveflow question . 我已经解决了一些Stackoveflow问题。 but I was not able to do the same. 但我无法做到这一点。
Hive doesnot support update but a workaround for that is to create partition to table. Hive不支持更新,但是一种解决方法是创建表的分区。
How to update a record in Hive? 如何在Hive中更新记录?
The update feature in Hive is planned in the next release. Hive中的更新功能计划在下一个版本中发布。
As a workaround , You could try the below : 解决方法是,您可以尝试以下操作:
NOTE : There will be duplicated data , but serde should only show the latest U data corresponding to the latest timestamp in the timestamp column. 注意:会有重复的数据,但serde应该仅在timestamp列中显示与最新时间戳相对应的最新U数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.