Enhance hierarchical addition on exception context#9695
Enhance hierarchical addition on exception context#9695bikramSingh91 wants to merge 1 commit intofacebookincubator:mainfrom
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
✅ Deploy Preview for meta-velox canceled.
|
mbasmanova
left a comment
There was a problem hiding this comment.
@bikramSingh91 Thank you. This should make it a bit easier to debug query failures.
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
926b8c2 to
3720027
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
3720027 to
0285f62
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
0285f62 to
6b0946c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
6b0946c to
a6ba90a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
a6ba90a to
82b6078
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
82b6078 to
d19a50b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
…#9695) Summary: Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321
d19a50b to
cf44dfb
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
cf44dfb to
f2f8986
Compare
|
This pull request was exported from Phabricator. Differential Revision: D56913321 |
|
This pull request has been merged in 5bf1e27. |
…#9695) Summary: Pull Request resolved: facebookincubator#9695 Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321 fbshipit-source-id: abc56abb72b0e526d8858232031279ad7a72a238
…#9695) Summary: Pull Request resolved: facebookincubator#9695 Currently, VeloxExceptions have the ability to add additional context from the top most level Exception context. This is useful for debugging exceptions thrown during expression evaluation where we want to know the current expression that threw it and the top level one that contains it. With this change, the "Top-level Context" concept is replaced by "Additional Context", and a new field called "isEssential" is added to the ExceptionContext to specify whether the context should always be part of the exception when traversing the hierarchy. This modification enables adding context at various levels within the hierarchy. Moreover, using this new method, extra details about the operator and relevant metadata are now included in the exception to facilitate debugging when queries fail due to runtime exceptions. Reviewed By: mbasmanova Differential Revision: D56913321 fbshipit-source-id: abc56abb72b0e526d8858232031279ad7a72a238
Ensure inclusion of "additional context" from Velox exceptions in the translation to Presto's ExecutionFailureInfo (which is used for propagating the query failure error to the coordinator). See Velox PR (facebookincubator/velox#9695) for more details on "additional context" Test Plan: Enhanced existing unit test.
Ensure inclusion of "additional context" from Velox exceptions in the translation to Presto's ExecutionFailureInfo (which is used for propagating the query failure error to the coordinator). See Velox PR (facebookincubator/velox#9695) for more details on "additional context" Test Plan: Enhanced existing unit test.
Summary:
Currently, VeloxExceptions have the ability to add additional context
from the top most level Exception context. This is useful for
debugging exceptions thrown during expression evaluation where we
want to know the current expression that threw it and the top level
one that contains it.
With this change, the "Top-level Context" concept is replaced by
"Additional Context", and a new field called "isEssential" is added
to the ExceptionContext to specify whether the context should always
be part of the exception when traversing the hierarchy. This
modification enables adding context at various levels within the
hierarchy.
Moreover, using this new method, extra details about the operator
and relevant metadata are now included in the exception to
facilitate debugging when queries fail due to runtime exceptions.
As an example, the exception thrown while executing an operator
will look like this:
Differential Revision: D56913321