You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FlightRPC][C++] Some status codes don't round-trip through gRPC #24321
KeyError and AlreadyExists don't fully round-trip, instead becoming UNKNOWN. There are others, but we don't attempt to map all the Arrow status to a gRPC status, only the ones that closely correspond to a gRPC error.
Antoine Pitrou / @pitrou:
Is it reasonably possible to pass the Status code on the side, e.g. as a custom HTTP header? Or is that impossible/too much work?
David Li / @lidavidm:
Yes, it's possible to pass custom headers @pitrou. But if we value "it looks like plain gRPC" we should try to map to and from gRPC codes IMO.
Antoine Pitrou / @pitrou:
Well, we can do both: map as much as we can for third-party clients (as a best effort), but also pass a custom header for the Arrow C++ client to read from and faithfully reproduce the original error.
Activity
asfimport commentedon Mar 13, 2020
Antoine Pitrou / @pitrou:
Is it reasonably possible to pass the Status code on the side, e.g. as a custom HTTP header? Or is that impossible/too much work?
asfimport commentedon Mar 13, 2020
David Li / @lidavidm:
Yes, it's possible to pass custom headers @pitrou. But if we value "it looks like plain gRPC" we should try to map to and from gRPC codes IMO.
asfimport commentedon Mar 13, 2020
Antoine Pitrou / @pitrou:
Well, we can do both: map as much as we can for third-party clients (as a best effort), but also pass a custom header for the Arrow C++ client to read from and faithfully reproduce the original error.
asfimport commentedon Mar 13, 2020
David Li / @lidavidm:
Sure, that makes sense. Let me open a separate issue so that we can track the cross-language work.
asfimport commentedon Mar 13, 2020
David Li / @lidavidm:
Oh, wait, no, that only makes sense in C++.
asfimport commentedon Mar 17, 2020
Antoine Pitrou / @pitrou:
Issue resolved by pull request 6615
#6615