Hive中无法多表查询

文章讲述了在Hive中执行多表自然连接查询时遇到的错误,原因是由于开启了严格的检查模式。解决方法是将`hive.strict.checks.cartesian.product`属性设置为`false`。
摘要由CSDN通过智能技术生成

在Hive中进行多表自然连接查询时报如下错误:

FAILED: SemanticException Cartesian products are disabled for safety reasons. If you know what you are doing, please sethive.strict.checks.cartesian.product to false and that hive.mapred.mode is not set to 'strict' to proceed. Note that if you may get errors or incorrect results if you make a mistake while using some of the unsafe features

原因为Hive中开启了严格模式,将其属性设置为false即可。

set hive.strict.checks.cartesian.product=false;

  • 11
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值