rename_field
Action
The rename_field
action is used to rename a field in a structure that exists in a table as part of the ALTER
SQL command.
Input Parameters
There is a single msgpack
serialized parameter passed to the action.
// The base class for all alter parameters.
struct AirportAlterBase
{
//! Catalog name to alter
std::string catalog;
//! Schema name to alter
std::string schema;
//! Entry name to alter
std::string name;
bool ignore_not_found;
};
struct AirportAlterTableRenameFieldParameters : AirportAlterBase
{
//! Path to source field
std::vector<std::string> column_path;
//! Column new name
std::string new_name;
(catalog, schema, name, column_path, new_name);
MSGPACK_DEFINE_MAP};
Return Value
The action is expected to return a single FlightInfo
structure with the changes applied. The app_metadata
field should be populated as appropriate for the flight to be used as a table.