Skip to content

Implement basic copy plans - #6539

Closed
alamb wants to merge 1 commit into
apache:mainfrom
alamb:alamb/copy_plans
Closed

Implement basic copy plans#6539
alamb wants to merge 1 commit into
apache:mainfrom
alamb:alamb/copy_plans

Conversation

@alamb

@alambalamb commented Jun 3, 2023

Copy link
Copy Markdown
Contributor

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-actionsgithub-actionsBot 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
Copy Markdown
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.

@alambalamb mentioned this pull request Jun 23, 2023
@alamb

Copy link
Copy Markdown
ContributorAuthor

I still hope to work on this feature at some point

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

Labels

sqlSQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement COPY ... TO statement

2 participants

@alamb@comphead