This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
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
| name | type | description |
|---|---|---|
| data_source_id | str | Data source identification string for a GDSTORAGE data source. |
| csv_file | Path | Path to the CSV file to upload. |
| table_name | str | Name for the table to create or replace in the data source. |
Returns
NoneExample
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",
)