create_table
Action
This create_table
action is used to create a table in a database as part of the CREATE TABLE
SQL command.
Input Parameters
There is a single msgpack
serialized parameter passed to the action.
struct AirportCreateTableParameters
{
;
string catalog_name;
string schema_name;
string table_name
// The serialized Arrow schema for the table.
;
string arrow_schema
// This will be "error", "ignore", or "replace"
;
string on_conflict
// The list of constraint expressions.
<uint64_t> not_null_constraints;
vector<uint64_t> unique_constraints;
vector<string> check_constraints;
vector
(
MSGPACK_DEFINE_MAP, schema_name,
catalog_name, arrow_schema,
table_name, not_null_constraints,
on_conflict, check_constraints)
unique_constraints};
Output Results
The create_table
action is expected to return a single FlightInfo
result that represents an Apache Flight that can be utilized to obtain the contents of the table.