关注微信公共号:小程在线
关注CSDN博客:程志伟的博客hive版本:2.1.1
hive在执行SQL中包含union all的语句时报错:
FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: The column KEY._col1:0._col0 is not in the vectorization context column map {KEY._col0=0, KEY._col1=1}.
解决方法:
在执行的时候增加下面的语句
set hive.vectorized.execution.enabled = false;



