Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy command from S3 to Redshift #813

Closed
2 tasks
adlsh11 opened this issue May 24, 2023 · 3 comments
Closed
2 tasks

Copy command from S3 to Redshift #813

adlsh11 opened this issue May 24, 2023 · 3 comments
Labels
feature-request A feature should be added or improved. high-level-library p3 This is a minor priority issue

Comments

@adlsh11
Copy link

adlsh11 commented May 24, 2023

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 adlsh11 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels May 24, 2023
@Velfi Velfi added high-level-library and removed needs-triage This issue or PR still needs to be triaged. labels May 31, 2023
@Velfi
Copy link
Contributor

Velfi commented May 31, 2023

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.

@jmklix jmklix added the p3 This is a minor priority issue label Jan 19, 2024
@jmklix
Copy link
Member

jmklix commented Apr 26, 2024

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

@jmklix jmklix closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. high-level-library p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

3 participants