永洪社区

标题: datamart查询问题 [打印本页]

作者: yhdata_0DaS7cER    时间: 2022-9-21 20:25
标题: datamart查询问题
两个数据集单独入了数据集市,都是select * from 表名 where 分区日期。用datamart关联后总的数据量不同。请问这两个语句分别在datamart和hive数据库里面是一个意思吗?为什么会不同呢?
作者: yhdata_0DaS7cER    时间: 2022-9-22 09:12
麻烦帮忙看一下吧。
作者: yhdata_yzm    时间: 2022-9-22 11:41
你把内容粘出来下,看不清楚你的图
作者: yhdata_0DaS7cER    时间: 2022-9-22 12:13
yhdata_yzm 发表于 2022-9-22 11:41
你把内容粘出来下,看不清楚你的图

单独两个数据集
select * from 表1 where partition_date = '2021-05-30'

select * from 表2 whete partition_date = '2021-05-30'

永洪上面查的
select aa.个人合同号码,bb.代理机构,bb.保费 from "路径/表1名.sqry" aa right join "路径/表2名.sqry" bb on "aa.个人合同号" = "bb.合同号码"

hive库上面查的
select count(1) from (select aa.contno,bb.agentcom,bb.prem from 表1 aa right join 表2 bb on aa.contno = bb.contno where aa.partition_date = '2021-05-30' and bb.partition_date = '2021-05-30') A
作者: yhdata_yzm    时间: 2022-9-22 12:22
yhdata_0DaS7cER 发表于 2022-9-22 12:13
单独两个数据集
select * from 表1 where partition_date = '2021-05-30'

不会有区别啊,你参考下用法呢https://www.yonghongtech.com/hel ... ghlightsub=datamart
作者: yhdata_0DaS7cER    时间: 2022-9-22 14:50
yhdata_yzm 发表于 2022-9-22 12:22
不会有区别啊,你参考下用法呢https://www.yonghongtech.com/help/Z-Suite/10.0/ch/datamartfunctions.ht ...

现在查询的时候报了设备上没有空间
作者: yhdata_yzm    时间: 2022-9-22 16:24
yhdata_0DaS7cER 发表于 2022-9-22 14:50
现在查询的时候报了设备上没有空间

稍后下,我们分析下问题。




欢迎光临 永洪社区 (http://club.yonghongtech.com/) Powered by Discuz! X3.4