Apache DataFusion SQL Query Engine
ARROW-6094: [FlightRPC] Add Flight RPC method getFlightSchema
Ryan Murray5cc5d8ee8e52
diff --git a/format/Flight.proto b/format/Flight.protoindex 0c8f28e531..a969122096 100644--- a/format/Flight.proto+++ b/format/Flight.proto@@ -61,6 +61,14 @@ service FlightService {*/rpc GetFlightInfo(FlightDescriptor) returns (FlightInfo) {}+ /*+ * For a given FlightDescriptor, get the Schema as described in Schema.fbs::Schema+ * This is used when a consumer needs the Schema of flight stream. Similar to+ * GetFlightInfo this interface may generate a new flight that was not previously+ * available in ListFlights.+ */+ rpc GetSchema(FlightDescriptor) returns (SchemaResult) {}+/** Retrieve a single stream associated with a particular descriptor* associated with the referenced ticket. A Flight can be composed of one or@@ -169,6 +177,14 @@ message Result {bytes body = 1;}+/*+ * Wrap the result of a getSchema call+ */+message SchemaResult {+ // schema of the dataset as described in Schema.fbs::Schema.+ bytes schema = 1;+}+/** The name or tag for a Flight. May be used as a way to retrieve or generate* a flight or be used to expose a set of previously defined flights.