sql样例

select *
from open.dws_openmall_item_inc_d a
where  a.log_date = '日期'
  and business = 'mall'
  and a.item_id=10022085

hive 执行有两条数据 spark执行有一条数据,经过排查发现存储路径如

spark与hive引擎差异致结果集不一致

 

 

表结构

spark与hive引擎差异致结果集不一致

 

 

spark 中任务前面有空格的数据字段是' 10022085' 而不是'10022085' 所以查询以上sql仅一条,hive有两条

相关文章:

  • 2022-12-23
  • 2021-07-09
  • 2021-08-18
  • 2021-06-23
  • 2021-05-30
  • 2021-10-20
  • 2021-08-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2021-12-25
  • 2021-04-29
  • 2022-12-23
  • 2021-07-14
  • 2021-05-30
相关资源
相似解决方案