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

Rewrite COPY ... TO command to match pgduckdb execution #264

Merged
merged 5 commits into from
Oct 12, 2024
Merged

Rewrite COPY ... TO command to match pgduckdb execution #264

merged 5 commits into from
Oct 12, 2024

Conversation

mkaruza
Copy link
Collaborator

@mkaruza mkaruza commented Oct 9, 2024

Currently COPY ... TO utility is broken due changes in maching table names inside duckb execution. Rewrite
complete query and parse manually each part of copy statement.

@mkaruza mkaruza requested a review from JelteF October 9, 2024 12:04
src/utility/copy.cpp Outdated Show resolved Hide resolved
src/utility/copy.cpp Show resolved Hide resolved
src/utility/copy.cpp Outdated Show resolved Hide resolved
src/utility/copy.cpp Outdated Show resolved Hide resolved
src/utility/copy.cpp Outdated Show resolved Hide resolved
src/utility/copy.cpp Outdated Show resolved Hide resolved
mkaruza and others added 4 commits October 12, 2024 13:16
Currently COPY ... TO utility is broken due changes in maching table
names inside duckb execution. Fix by rewriting COPY command to match
table name.
Manually parse OPTIONS part of COPY query. Check settings and allow only
combinations that should work with DuckDB execution.
@mkaruza
Copy link
Collaborator Author

mkaruza commented Oct 12, 2024

@JelteF with your simplification changes this works as expected.

@mkaruza mkaruza merged commit ba60ba7 into main Oct 12, 2024
4 checks passed
@mkaruza mkaruza deleted the copy branch October 12, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants