aito.api.quick_add_table
- aito.api.quick_add_table(client: AitoClient, input_file: Path | PathLike, table_name: str = None, input_format: str = None, batch_size: int = 1000)
Create a table and upload a file to the table, using the default inferred schema
For multitenant instances, this function uses streaming batch uploads instead of S3 file upload, as S3 file upload is not supported in multitenant environments.
- Parameters:
client (AitoClient) – the AitoClient instance
input_file (Union[Path, PathLike]) – path to the input file to be uploaded
table_name (Optional[str]) – the name of the table, defaults to the name of the input file
input_format (Optional[str]) – specify the format of the input file, defaults to the input file extension
batch_size (int) – batch size for streaming upload (only used for multitenant), defaults to 1000