MCPcopy Create free account
hub / github.com/apache/arrow / TryConvertFlightStatusCode

Function TryConvertFlightStatusCode

cpp/src/arrow/flight/test_definitions.cc:1488–1495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1486 return Status::Invalid(raw_code);
1487}
1488arrow::Result<FlightStatusCode> TryConvertFlightStatusCode(int raw_code) {
1489 for (const auto status_code : kFlightStatusCodes) {
1490 if (raw_code == static_cast<int>(status_code)) {
1491 return status_code;
1492 }
1493 }
1494 return Status::Invalid(raw_code);
1495}
1496
1497class TestStatusDetail : public StatusDetail {
1498 public:

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected