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

Method Deserialize

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

Source from the content-addressed store, hash-verified

517} // namespace
518
519arrow::Result<StatementQueryTicket> StatementQueryTicket::Deserialize(
520 std::string_view serialized) {
521 pb::sql::TicketStatementQuery command;
522 google::protobuf::Any any;
523 if (!any.ParseFromArray(serialized.data(), static_cast<int>(serialized.size()))) {
524 return Status::Invalid("Unable to parse ticket");
525 }
526 if (!any.UnpackTo(&command)) {
527 return Status::Invalid("Unable to unpack TicketStatementQuery");
528 }
529 StatementQueryTicket result;
530 result.statement_handle = command.statement_handle();
531 return result;
532}
533
534arrow::Result<std::string> CreateStatementQueryTicket(
535 const std::string& statement_handle) {

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected