Daniel Becker has uploaded this change for review. ( http://gerrit.cloudera.org:8080/18007
Change subject: IMPALA-11011: Impala crashes in OrcStructReader::NumElements() ...................................................................... IMPALA-11011: Impala crashes in OrcStructReader::NumElements() Running the query select inner_arr.ITEM from functional_orc_def.complextypestbl.nested_struct.c.d.ITEM as inner_arr; in a non-full-acid version/copy of functional_orc_def.complextypestbl crashes Impala because in OrcStructReader::NumElements() 'vbatch_' is NULL and we dereference it. This commit adds a NULL check and if 'vbatch_' is NULL, NumElements() returns 0. Change-Id: I19cea7afdd1b3542a20a81b9f212fa320f3c1427 --- M be/src/exec/orc-column-readers.h 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/07/18007/1 -- To view, visit http://gerrit.cloudera.org:8080/18007 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I19cea7afdd1b3542a20a81b9f212fa320f3c1427 Gerrit-Change-Number: 18007 Gerrit-PatchSet: 1 Gerrit-Owner: Daniel Becker <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
