概述
use database1;
create view if not exists database1.view_yy as
with
tb444 as (
select recordid,get_json_object(json,'$.score1') as score1 from fc_face_in_record where captime >= 0 and captime <=3673342425732
),
tb_7787 as (select * from (select id_ujjsdk,id_uuu,cc444,record_id from fc_p_face_cluster where cap_time >= 0 and cap_time <=3673342425732)l left anti join fc_face_merged_dossier_history r on l.id_ujjsdk=r.old_profile_id ),
tb123 as (select l2.*,r2.city from tb_7787 l2 left join channel_city r2 on l2.cc444 = r2.channelId),
tb_joined as (select l3.*,if(r3.score1 is null, "",id_uuu) as id_uuu_le65
from tb123 l3 left join tb444 r3 on l3.record_id = r3.recordid),
rp111 as (select
id_ujjsdk as id111
,count(distinct id_uuu) as count1
,count( distinct id_uuu_le65) as count2
,count(distinct cc444) as count3
,collect_set(city) as set_s
,count(distinct city) as set_sCount
from tb_joined group by id_ujjsdk)
select * from rp111;
最后
以上就是傲娇犀牛为你收集整理的hivesql sparksql with...as 创建永久视图的全部内容,希望文章能够帮你解决hivesql sparksql with...as 创建永久视图所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复