aito.client.AitoClient.create_table

AitoClient.create_table(table_name: str, table_schema: Union[aito.schema.AitoTableSchema, Dict]) → Dict

create a table with the specified table name and schema

update the table if the table already exists and does not contain any data

Parameters
  • table_name (str) – the name of the table

  • table_schema (an AitoTableSchema object or a Dict, optional) – Aito table schema

Returns

the table schema

Return type

Dict