SemanticException Column xx Found in more than One Tables/Subqueries

发布时间:2020-07-28 05:03:13 作者:巧克力黒
来源:网络 阅读:25519

执行hiveql时报错:

SemanticException Column xx Found in more than One Tables/Subqueries

Hive中有两张表中拥有同一个字段名称,在这两个表做关联的时候会报这个错误

SemanticException Column xx Found in more than One Tables/Subqueries







将其中一个表的重复字段加上别名,然后进行关联查询

select city.city, hotel.hotel, hotel.hotelname from city city, 

(select city as hcity  ,hotel , hotelname from hotel) hotel

where city.city = hotel.hcity


推荐阅读:
  1. 利用php怎么实现一个301重定向跳转功能
  2. openssl加密扩展怎么在PHP中使用

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

hive semanticexcept xx fo

上一篇:浪潮服务器硬盘坏道数据恢复

下一篇:NHibernate.cfg.xml文件总结

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》