catalog_version Action

This catalog_version action is used to determine the current version of the database provided by an Arrow Flight server. By indicating that a catalog version has changed, DuckDB refreshes the contents the database’s schemas rather than using cached data.

Input Parameters

There is a single msgpack serialized parameter passed to the action.

struct AirportGetCatalogVersionParams
{
  string catalog_name;
  MSGPACK_DEFINE_MAP(catalog_name);
};

Output Result.

There is a single msgpack expected result from the action.

struct GetCatalogVersionResult
{
  uint64_t catalog_version;
  bool is_fixed;
  MSGPACK_DEFINE_MAP(catalog_version, is_fixed)
};

If the is_fixed field is true, DuckDB will cache the returned catalog version and never query the Arrow Flight server for it again during the current DuckDB session.