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

Overwriting output files not working #24

Open
loicalleyne opened this issue Sep 26, 2024 · 1 comment
Open

Overwriting output files not working #24

loicalleyne opened this issue Sep 26, 2024 · 1 comment

Comments

@loicalleyne
Copy link

pg2parquet 0.1.0-beta.8

Running with --output-file does not overwrite existing destination file.

@exyi
Copy link
Owner

exyi commented Sep 29, 2024

Hi! That's quite strange, it is overwriting the output files for me. I use the File::create function to open the file, which is documented as "will create a file if it does not exist, and will truncate it if it does.", so the behavior should not be platform dependent. Does it fail somehow or just doesn't create the file?

Anyway, which platform are you on? Could you please try it with the latest version? (not that I'd expect it to make a difference). I have tested with the following command:

pg2parquet export -H 127.0.0.1 -p 5432 -U postgres -d postgres -o test.parquet -q 'select 1'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants