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

Method GetFlightInfoSqlInfo

cpp/src/arrow/flight/sql/server.cc:1033–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033arrow::Result<std::unique_ptr<FlightInfo>> FlightSqlServerBase::GetFlightInfoSqlInfo(
1034 const ServerCallContext& context, const GetSqlInfo& command,
1035 const FlightDescriptor& descriptor) {
1036 if (sql_info_id_to_result_.empty()) {
1037 return Status::KeyError("No SQL information available.");
1038 }
1039
1040 std::vector<FlightEndpoint> endpoints{
1041 FlightEndpoint{Ticket{descriptor.cmd}, {}, std::nullopt, {}}};
1042 ARROW_ASSIGN_OR_RAISE(
1043 auto result, FlightInfo::Make(*SqlSchema::GetSqlInfoSchema(), descriptor, endpoints,
1044 -1, -1, false))
1045
1046 return std::make_unique<FlightInfo>(result);
1047}
1048
1049arrow::Result<std::unique_ptr<FlightInfo>> FlightSqlServerBase::GetFlightInfoXdbcTypeInfo(
1050 const ServerCallContext& context, const GetXdbcTypeInfo& command,

Callers

nothing calls this directly

Calls 2

KeyErrorFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected