GitHub user paul-rogers opened a pull request:
https://github.com/apache/drill/pull/838
DRILL-5512: Standardize error handling in ScanBatch
Standardizes error handling to throw a UserException. Prior code threw
various exceptions, called the fail() method, or returned a variety of
status codes.
Note: this PR depends upon DRILL-5511, PR #836. For this PR, please review
only the changes introduced in DRILL-5512. Commit this after committing
DRILL-5511.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paul-rogers/drill DRILL-5512
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/838.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #838
----
commit b31d40df314d76ae6c458891e65d423b4b9e61cb
Author: Paul Rogers <[email protected]>
Date: 2017-05-15T21:23:10Z
DRILL-5511: Additional UserException categories
Adds three kinds of internal errors:
1. General execution exception: something failed due to issues outside
Drill.
2. Internal error: something failed due to a likely code error.
3. Unspecified: something failed, but we donât know why.
commit b8a3f15526d83369ce124e777e9d6e7afa84d7e0
Author: Paul Rogers <[email protected]>
Date: 2017-05-15T22:00:21Z
DRILL-5512: Standardize error handling in ScanBatch
Standardizes error handling to throw a UserException. Prior code threw
various exceptions, called the fail() method, or returned a variety of
status codes.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---