catalog_data_source.

upload_csv

upload_csv(data_source_id: str, csv_file: Path, table_name: str)

Upload a CSV file and import it into a GDSTORAGE data source.

Convenience method that orchestrates the full flow: staging_upload → analyze_csv → import_csv → register_upload_notification.

Parameters

nametypedescription
data_source_idstrData source identification string for a GDSTORAGE data source.
csv_filePathPath to the CSV file to upload.
table_namestrName for the table to create or replace in the data source.

Returns

None

Example

from pathlib import Path

# Upload a CSV file end-to-end in a single call
sdk.catalog_data_source.upload_csv(
    data_source_id="my-gdstorage-ds",
    csv_file=Path("data.csv"),
    table_name="my_table",
)