insert overwrite table backup.epg_wiki_infonode
select * from tvlog.epg_wiki_info;unix
insert overwrite table backup.wikiit
select * from tvlog.wiki;io
insert overwrite table backup.device_infotable
select * from tvlog.device_info;date
set hive.exec.dynamic.partition=true;select
set hive.exec.dynamic.partition.mode=nonstrict;channel
set hive.exec.max.dynamic.partitions.pernode=1000;im
insert overwrite table backup.tvlog_tcltab
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})