You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2019/12/05 20:02:00 UTC
[jira] [Updated] (ARROW-7332) [C++][Parquet] Explicitly catch
status exceptions in PARQUET_CATCH_NOT_OK
[ https://issues.apache.org/jira/browse/ARROW-7332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Kietzman updated ARROW-7332:
--------------------------------
Summary: [C++][Parquet] Explicitly catch status exceptions in PARQUET_CATCH_NOT_OK (was: [C++][Parquet] )
> [C++][Parquet] Explicitly catch status exceptions in PARQUET_CATCH_NOT_OK
> -------------------------------------------------------------------------
>
> Key: ARROW-7332
> URL: https://issues.apache.org/jira/browse/ARROW-7332
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Affects Versions: 0.15.1
> Reporter: Ben Kietzman
> Assignee: Ben Kietzman
> Priority: Minor
> Fix For: 1.0.0
>
>
> PARQUET_THROW_NOT_OK throws a ParquetStatusException, which contains a full Status rather than just an error string. These could be caught explicitly in PARQUET_CATCH_NOT_OK and the original status returned rather than creating a new status:
> {code}
> } catch (const ::parquet::ParquetStatusException& e) { \
> return e.status(); \
> } catch (const ::parquet::ParquetException& e) { \
> return Status::IOError(e.what()) \
> {code}
> This will retain the original StatusCode rather than overwriting it with IOError.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)