Add application metadata field to FlightData message

This commit is contained in:
David Li committed 2019-06-26 09:25:13 -04:00
1 parent c631c9b07c
commit 86f4789ab2
1 file changed
+10 -4
+10 -4
View File
@@ -77,7 +77,7 @@ service FlightService {
* number. In the latter, the service might implement a 'seal' action that
* can be applied to a descriptor once all streams are uploaded.
*/
rpc DoPut(stream FlightData) returns (PutResult) {}
rpc DoPut(stream FlightData) returns (stream PutResult) {}
/*
* Flight services can support an arbitrary number of simple actions in
@@ -285,6 +285,11 @@ message FlightData {
*/
bytes data_header = 2;
/*
* Application-defined metadata.
*/
bytes data_app_metadata = 3;
/*
* The actual batch of Arrow data. Preferably handled with minimal-copies
* coming last in the definition to help with sidecar patterns (it is
@@ -295,7 +300,8 @@ message FlightData {
}
/**
* The response message (currently empty) associated with the submission of a
* DoPut.
* The response message associated with the submission of a DoPut.
*/
message PutResult {}
message PutResult {
bytes data_app_metadata = 1;
}