tez 에서 UNION ALL 을 이용할때,
테이블중 하나의 조건중 결과가 0건이라면 이런 오류가 난다.
org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: NullPointerException null
at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231)
hive 상위버전으로 올라가면 버그가 해결될지 모르겠지만,
우선 이 버그를 회피하려면 vectorized 옵션을 off 해야한다.
set hive.vectorized.execution.enabled = false;