aws-sdk-rust icon indicating copy to clipboard operation
aws-sdk-rust copied to clipboard

Copy command from S3 to Redshift

Open adlsh11 opened this issue 2 years ago • 1 comments
trafficstars

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

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

A note for the community

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

adlsh11 avatar May 24 '23 18:05 adlsh11

Hey @adlsh11, thanks for submitting this issue. We'll add it to our backlog but we won't be looking at tasks like this until after a 1.0 release.

"tasks like this" refers to everything labeled "high-level-library" in GitHub.

Velfi avatar May 31 '23 14:05 Velfi

Closing this for now, as this isn't something that we plan on supporting in the near future.

jmklix avatar Apr 26 '24 17:04 jmklix

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Apr 26 '24 17:04 github-actions[bot]