135-1821-9792

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
网页URL:http://wtcwzsj.com/article/gjedpj.html

其他资讯



Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号