Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jun 3, 2023

Which issue does this PR close?

Close #5654

Rationale for this change

Make it easy to copy data in / out of DataFusion

What changes are included in this PR?

Add planning support for COPY .. TO ..

Still todo:

  • Figure out how to pass options

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the sql SQL Planner label Jun 3, 2023
};

// figure out what to do with the target?
// should we treat it like a table name???
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PG treats it as files https://www.postgresql.org/docs/current/sql-copy.html

filename
The path name of the input or output file. An input file name can be an absolute or relative path, but an output file name must be an absolute path. Windows users might need to use an E'' string and double any backslashes used in the path name.

@alamb
Copy link
Contributor Author

alamb commented Jul 25, 2023

I still hope to work on this feature at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement COPY ... TO statement

2 participants