yhdata_0DaS7cER青铜一
2022-9-21 20:25:19 发布在问答
【数据处理】 datamart查询问题
两个数据集单独入了数据集市,都是select * from 表名 where 分区日期。用datamart关联后总的数据量不同。请问这两个语句分别在datamart和hive数据库里面是一个意思吗?为什么会不同呢?
IMG_20220921_201808.jpg
IMG_20220921_201906.jpg
IMG_20220921_201604.jpg
2965
6
精彩评论6
yhdata_0DaS7cER青铜一
发表于 2022-9-22 09:12:36 显示全部楼层
麻烦帮忙看一下吧。
回复

使用道具 2#

yhdata_yzm
发表于 2022-9-22 11:41:23 显示全部楼层
你把内容粘出来下,看不清楚你的图
回复

使用道具 3#

yhdata_0DaS7cER青铜一
发表于 2022-9-22 12:13:15 显示全部楼层
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
回复

使用道具 4#

yhdata_yzm
发表于 2022-9-22 12:22:52 显示全部楼层
yhdata_0DaS7cER 发表于 2022-9-22 12:13
单独两个数据集
select * from 表1 where partition_date = '2021-05-30'

不会有区别啊,你参考下用法呢https://www.yonghongtech.com/hel ... ghlightsub=datamart
回复

使用道具 5#

yhdata_0DaS7cER青铜一
发表于 2022-9-22 14:50:31 显示全部楼层
yhdata_yzm 发表于 2022-9-22 12:22
不会有区别啊,你参考下用法呢https://www.yonghongtech.com/help/Z-Suite/10.0/ch/datamartfunctions.ht ...

现在查询的时候报了设备上没有空间
IMG_20220922_144815.jpg
回复

使用道具 6#

yhdata_yzm
发表于 2022-9-22 16:24:27 显示全部楼层
yhdata_0DaS7cER 发表于 2022-9-22 14:50
现在查询的时候报了设备上没有空间

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

使用道具 7#

高级模式
您需要登录后才可以回帖 登录 | 免费注册

  • 官方微信

    欢迎关注永洪服务号!收费为0,价值无限

    扫码关注
  • 新浪微博

    让每位用户轻松挖掘数据价值!

    访问新浪微博
  • 智能客服
1500W

用户等你来哦

Copyright   ©2012-2025  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |《永洪社区协议》
返回顶部