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 a query resultset to external file #5075

Open
sunng87 opened this issue Nov 29, 2024 · 0 comments
Open

COPY a query resultset to external file #5075

sunng87 opened this issue Nov 29, 2024 · 0 comments
Labels
C-feature Category Features

Comments

@sunng87
Copy link
Member

sunng87 commented Nov 29, 2024

What problem does the new feature solve?

Currently we can only copy entire table to an external file, for some scenarios, we would like to add a where filter, or combine data from multiple tables.

What does the feature do?

Add support for SQL syntax like:

COPY (SELECT * FROM tbl WHERE ...) TO '/xxx/xxx/output.parquet' WITH (FORMAT = 'parquet');

Similar approaches:

COPY TO can also copy the results of a SELECT query.

Implementation challenges

No response

@sunng87 sunng87 added the C-feature Category Features label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category Features
Projects
None yet
Development

No branches or pull requests

1 participant