struct对象为空的数据如何查询?
hive吧
全部回复
仅看楼主
level 7
ILYXS2000 楼主
hive中,如果查询struct对象类型为空的数据
mongoDB集合table_abc中,有一个struct对象类型的字段struct_obj
我用select * from table_abc where struct_obj is null 查不到数据。
但是select * from table_abc where struct_obj is not null却能查到数据。
2017年07月04日 10点07分 1
level 7
ILYXS2000 楼主
在mongoDB中使用db.table_abc.find({"struct_obj" : null})
查找完全没问题,数据都能查出来。
但是在hive中,select * from table_abc where struct_obj is null 查不到数据
2017年07月05日 00点07分 2
level 7
ILYXS2000 楼主
哈哈哈,完美解决了!!!想知道吗?嘿嘿嘿
2017年07月05日 01点07分 4
1