Hive Union ALL - java 空指针异常
Hive Union ALL - java nullpointer exception
我有一个类似这样的 Hive 查询
insert into table all_data
select a,b from t1
union all
select a,b from t2`
以上查询工作正常。
当我将查询更改为以下内容时:
insert into table all_data
select a,b from t1
union all
select a,b from t2
union all
select a,b from t3
我收到 java 空指针错误。所以我假设最后一个查询有问题。
然后我试试这个
insert into table all_data
select a,b from t3
并且有效。
问题是 Union All 查询失败,但查询本身有效。
关于如何让它在 Union All 中工作的任何指示?
试试这个。
insert into table all_data
select * from (
select a,b from t1
union all
select a,b from t2
union all
select a,b from t3
) u
我有一个类似这样的 Hive 查询
insert into table all_data
select a,b from t1
union all
select a,b from t2`
以上查询工作正常。 当我将查询更改为以下内容时:
insert into table all_data
select a,b from t1
union all
select a,b from t2
union all
select a,b from t3
我收到 java 空指针错误。所以我假设最后一个查询有问题。 然后我试试这个
insert into table all_data
select a,b from t3
并且有效。 问题是 Union All 查询失败,但查询本身有效。 关于如何让它在 Union All 中工作的任何指示?
试试这个。
insert into table all_data
select * from (
select a,b from t1
union all
select a,b from t2
union all
select a,b from t3
) u