hive中orc表如果新增或者修改表结构可能查询会报错:
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: No type found for column type entry 3
at org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatchCtx.addScratchColumnsToBatch(VectorizedRowBatchCtx.java:604)
at org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatchCtx.createVectorizedRowBatch(VectorizedRowBatchCtx.java:339)
at org.apache.hadoop.hive.ql.io.orc.VectorizedOrcInputFormat$VectorizedOrcRecordReader.createValue(VectorizedOrcInputFormat.java:109)
… 13 more
解决方案 查询前执行一下 set hive.vectorized.execution.enabled=false;