Import CSV to Table
import_csv_to_tableImports data from a CSV file in S3 into an S3 table, creating the table with schema inferred from the CSV if it doesn't exist.
Instructions
Reads data from a CSV file stored in S3 and imports it into an S3 table. If the table doesn't exist, it will be created with a schema inferred from the CSV.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | REST URI for Iceberg catalog | |
| region | Yes | AWS region for S3Tables/Iceberg REST endpoint | |
| s3_url | Yes | The S3 URL of the CSV file (format: s3://bucket-name/key) | |
| namespace | Yes | The namespace. Must be 1-255 characters long. | |
| warehouse | Yes | Warehouse string for Iceberg catalog | |
| table_name | Yes | The table name. Must be 1-255 characters long. | |
| catalog_name | No | Catalog name | |
| preserve_case | No | Preserve case of column names | |
| rest_signing_name | No | REST signing name | |
| rest_sigv4_enabled | No | Enable SigV4 signing |