我正在尝试按如下方式运行查询
hive -e "set hive.execution.engine=mr;set hive.strict.checks.cartesian.product=false;
set hive.mapred.mode=nonstrict;use db1; select col1,col2 from tb1 where col_date='2020-08-15' and col3='Y'
and col4='val4' and col1 not in
( select distinct col1 from db2.tb2 where col_date='2020-08-15' and
col5='val5' and col6='val6' and col3='Y' and col4='val4') "
但我一直在
FAILED: SemanticException Column col1 Found in more than One Tables/Subqueries
我究竟做错了什么 ?我怎样才能解决这个问题 ?
中的列db1.tb1
col1
col2
col_date
col3
col4
中的列db2.tb2
col1
col2
col_date
col3
col4
col5
col6