question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Redshift 'copy from' syntax

See original GitHub issue

I would like to add some missing Redshift syntax support, namely ‘COPY target FROM src’. The syntax specification: https://docs.aws.amazon.com/redshift/latest/dg/r_COPY.html

The biggest change is that would allow a string literal as the source, e.g 's3://path/': COPY target FROM 's3://some_path'

It can be discussed if having a source table being represented as a path is something that should be supported.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
reatacommented, Oct 1, 2021

Previously we had an example on SparkSQL select from a directory path directly, here’s another corresponding syntax for writing to a directory path:

1reaction
reatacommented, Sep 4, 2021

Thanks for your understanding and patience. I’ll close the PR and keep it issue open for future reference then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

COPY - Amazon Redshift - AWS Documentation
COPY syntax overview. You can perform a COPY operation with as few as three parameters: a table name, a data source, and authorization...
Read more >
Redshift Copy: How to use Redshift's COPY command
The Redshift COPY command, funnily enough, copies data from one source and loads it into your Amazon Redshift database. The source can be...
Read more >
Step 5: Run the COPY commands - Amazon Redshift
Learn basic COPY command syntax, and then run the COPY command in your SQL client with different options to learn how to load...
Read more >
Amazon Redshift COPY Command: 3 Comprehensive Aspects
ETL: Redshift has a COPY command which is used to load data. But for this, the data needs to be EC2. In case...
Read more >
How to Load and Unload CSV Files in Redshift - Skyvia Blog
Load Data from Amazon S3 to Redshift, Using COPY Command · Create the schema on Amazon Redshift. · Load the CSV file to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found