-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-8183: [C++][Python][FlightRPC] Expose transport error metadata #6747
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for following up with this. My main comment is about not losing the underlying gRPC error information on the C++ side by not overriding the status unconditionally. This will also fix the tests.
cpp/src/arrow/flight/internal.cc
Outdated
*status = Status(code, message); | ||
const auto grpc_detail_val = trailers.find(kBinaryErrorDetailsKey); | ||
std::shared_ptr<FlightStatusDetail> flightStatusDetail( | ||
new FlightStatusDetail(FlightStatusCode::Unavailable)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't use Unavailable. We should probably add a new enum variant for when there's no other applicable code, or otherwise default to INTERNAL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in most recent path
Thanks a lot for the comments @lidavidm! will address and get back to you. |
fa50795
to
5b740b3
Compare
This is the C++ and Python version of ARROW-8181
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
This is the C++ and Python version of ARROW-8181