flight_info Action

Implement the flight_info DoAction to retrieve table schema and metadata at specific timestamps or versions for time travel queries.

The flight_info action retrieves the schema and metadata for a table at a specific point in time. This is particularly important for time travel queries, where the table’s schema may have evolved over time. The action allows the server to return the appropriate schema for the requested timestamp or version.

Input Parameters

The action receives a single msgpack-encoded parameter:

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;

  MSGPACK_DEFINE_MAP(descriptor, at_unit, at_value)
};

Return Value

The action must return a single serialized Arrow FlightInfo structure representing the table at the specified point in time. This custom action is used instead of the standard GetFlightInfo RPC because it supports additional parameters such as time travel information.