Files
impala/testdata/data/corrupt_schema.orc
Zoltan Borok-Nagy 8f448cfc6b IMPALA-9277: Catch exception thrown from orc::ColumnSelector::updateSelectedByTypeId
orc::ColumnSelector::updateSelectedByTypeId can throw an exception on
malformed ORC files. The exception wasn't caught by Impala therefore it
caused program termination.

The fix is to simply catch the exception and return with a parse error
instead.

Testing:
* added corrupt ORC file and e2e test

Change-Id: I2f706bc832298cb5089e539b7a818cb86d02199f
Reviewed-on: http://gerrit.cloudera.org:8080/14994
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2020-01-10 17:35:31 +00:00

1.9 KiB