SemanticExceptionColumnxxFoundinmorethanOneTables/Subqueries-成都快上网建站

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://kswjz.com/article/gjedpj.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流