Sometimes hive error message can be useless. It just says FAILED: NullPointerException null [cause] None
.
I wanted to note few such experience.
- Select columns missing commas
SELECT
col1
col2
col3
FROM
table1
- Unions with different column name
SELECT
col1
col2
FROM
table1
UNION ALL
SELECT
col1
col2 as b
FROM
table2