flight_info
Action
This flight_info
action is used to determine the schema of a table function supplied by an Arrow Flight server. Since table’s schemas can vary across versions, when using a point in time or time travel query the server needs to return the schema of the table at that point.
Input Parameters
There is a single msgpack
encoded parameter passed to the action.
struct AirportTableFunctionFlightInfoParameters
{
// The flight descriptor
std::string descriptor;
// Specify the point in time information if not specified
// these fields are empty strings.
std::string at_unit;
std::string at_value;
(descriptor, at_unit, at_value)
MSGPACK_DEFINE_MAP};
Output Result
The flight_info
is expected to return a single serialized Arrow FlightInfo
structure, that will then be used to retrieve the data. The custom action of flight_info
is used because it allows additional data to be serialized compared with the GetFlightInfo
Arrow RPC method.