新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

SemanticExceptionColumnxxFoundinmorethanOneTables/Subqueries

执行hiveql时报错:

创新互联建站提供成都网站设计、网站制作、网页设计,成都品牌网站建设1元广告等致力于企业网站建设与公司网站制作,十余年的网站开发和建站经验,助力企业信息化建设,成功案例突破上千余家,是您实现网站建设的好选择.

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


文章名称:SemanticExceptionColumnxxFoundinmorethanOneTables/Subqueries
转载源于:http://www.wjwzjz.com/article/gjedpj.html
在线咨询
服务热线
服务热线:028-86922220
TOP