drop_schema Action

Implement the drop_schema DoAction to support DROP SCHEMA statements for removing schemas from your Arrow Flight server database.

The drop_schema action deletes an existing schema from the database. This action is invoked when executing a DROP SCHEMA SQL statement.

SQL Example

DROP SCHEMA example.analytics;
DROP SCHEMA IF EXISTS example.temp_data;

Input Parameters

The action receives a single msgpack-serialized parameter:

struct DropItemActionParameters
{
  std::string type;

  std::string catalog_name;
  std::string schema_name;
  std::string name;

  bool ignore_not_found;

  MSGPACK_DEFINE_MAP(type, catalog_name, schema_name, name, ignore_not_found)
};

The type field of the parameters will be set to the value schema.

Return Value

The action does not return a value. If an error occurs, the server must raise an Arrow Flight exception with an appropriate error message.