insert overwrite table backup.epg_wiki_info
select * from tvlog.epg_wiki_info;
insert overwrite table backup.wiki
select * from tvlog.wiki;
insert overwrite table backup.device_info
select * from tvlog.device_info;
set hive.exec.dynamic.partition=true;
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.max.dynamic.partitions.pernode=1000;
insert overwrite table backup.tvlog_tcl
partition (year, month, day)
select * from tvlog.tvlog_tcl;
select
count(userid) as total,
dt,
channelname
from tvlog.tvlog_tcl
where channelname = $P{channelname}
and (unix_timestamp(endtime) - unix_timestamp(starttime)) > $P{arrivaltime}
and year = year($P{date})
and month = month($P{date})
and day = day($P{date})
时间: 2024-11-21 00:29:23