gpt4 book ai didi

sql - 删除 treasure-data/hadoop 中的查询?

转载 作者:可可西里 更新时间:2023-11-01 15:40:29 26 4
gpt4 key购买 nike

我尝试编写一个查询来删除 treasure-data 中的一些行,但服务器忽略了它。我缺少解决此问题的文档。

这是日志:

    Use 'td job:show 2485728' to show the status.
queued...
started at 2013-04-18T10:22:32Z
Hive history file=/mnt/hive/tmp/2073/hive_job_log__336863980.txt
finished at 2013-04-18T10:22:39Z
Ignored "delete from mytable where time < unix_timestamp() - 30*60*60*24"

最佳答案

抱歉,HIVE 中没有删除语句。一种可能的技巧是重写表格:

INSERT OVERWRITE TABLE mytable
SELECT * FROM mytable
WHERE time >= unix_timestamp() - 30*60*60*24

关于sql - 删除 treasure-data/hadoop 中的查询?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16081084/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com