aito.client.AitoClient.upload_file¶
-
AitoClient.
upload_file
(table_name: str, file_path: os.PathLike, optimize_on_finished: bool = True, polling_time: int = 10)¶ upload a file to the specfied table
- Parameters
table_name (str) – the name of the table
file_path (PathLike) – path to the file to be uploaded
optimize_on_finished (bool) –
optimize_table()
when finished uploading, defaults to Truepolling_time (int) – polling wait time
- Raises
BaseError – incorrect file extension, should be .ndjson.gz
RequestError – an error occurred during the upload of the file to S3