Copy command from S3 to Redshift #813
Labels
feature-request
A feature should be added or improved.
high-level-library
p3
This is a minor priority issue
Describe the feature
The feature should achieve the same functionality of Python's copy command from S3 to Redshift.
Example in Python as below:
Create a new table named "iris"
sql_query = """CREATE TABLE IF NOT EXISTS iris_3
(
sepal_length NUMERIC,
sepal_width NUMERIC,
petal_length NUMERIC,
petal_width NUMERIC,
species VARCHAR
)
"""
execute_sql(sql_query, conn_string)
Define S3 source file path
file_path = "s3://data-to-migrate/iris_dataset.csv"
Copy data
sql_query = """
COPY iris_3
FROM '{}'
IAM_ROLE '{}'
csv
IGNOREHEADER 1
;
""".format(file_path, role_arn)
execute_sql(sql_query, conn_string)
Use Case
I would like to expedite query execution time by moving away from Python to Rust, when it comes to data extraction and load.
Proposed Solution
No response
Other Information
No response
Acknowledgements
A note for the community
Community Note
The text was updated successfully, but these errors were encountered: