Description
ORCStruct should return null when object passed to getStructFieldsDataAsList(Object obj) is null.
public List<Object> getStructFieldsDataAsList(Object object) { OrcStruct struct = (OrcStruct) object; List<Object> result = new ArrayList<Object>(struct.fields.length);
In the above code struct.fields will throw NPE if struct is NULL.
Attachments
Attachments
Issue Links
- is duplicated by
-
HIVE-6631 NPE when select a field of a struct from a table stored by ORC
- Resolved