Skip to content

DRILL-5058: External sort does not handle its own UserExceptions#664

Closed
paul-rogers wants to merge 1 commit intoapache:masterfrom
paul-rogers:DRILL-5058
Closed

DRILL-5058: External sort does not handle its own UserExceptions#664
paul-rogers wants to merge 1 commit intoapache:masterfrom
paul-rogers:DRILL-5058

Conversation

@paul-rogers
Copy link
Contributor

Solution is to catch the exception, clean up, and fail the operator.

Test case is the existing {{TestSortSpillWithException}} test case.

Solution is to catch the exception, clean up, and fail the operator.
Copy link
Contributor

@Ben-Zvi Ben-Zvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@paul-rogers
Copy link
Contributor Author

Hold off on this for a bit. It turns out that the proper handling of exceptions is a bit murky. Should a UserException be handled locally in each operator (as are all other exceptions?) That's what this fix does. Or, should all other exceptions be translated to a UserException and thrown up the stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants