What happens?
When using to to_parquet and setting overwrite=False, the file is still overwritten. No warning or exception is raised.
To Reproduce
import duckdb
con = duckdb.connect()
con.sql("SELECT 1 as test").write_parquet("test.parquet")
con.close()
con = duckdb.connect()
con.from_parquet("test.parquet").show()
con.sql("SELECT 2 as test").write_parquet("test.parquet", overwrite=False)
con.from_parquet("test.parquet").show()
OUTPUT
┌───────┐
│ test │
│ int32 │
├───────┤
│ 1 │
└───────┘
┌───────┐
│ test │
│ int32 │
├───────┤
│ 2 │
└───────┘
OS:
macOS Tahoe 26.6.2
DuckDB Package Version:
1.5.5
Python Version:
3.13.15
Full Name:
Luke Strange
Affiliation:
The Data City
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Did you include all relevant configuration to reproduce the issue?
What happens?
When using to to_parquet and setting
overwrite=False, the file is still overwritten. No warning or exception is raised.To Reproduce
OUTPUT
OS:
macOS Tahoe 26.6.2
DuckDB Package Version:
1.5.5
Python Version:
3.13.15
Full Name:
Luke Strange
Affiliation:
The Data City
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Did you include all relevant configuration to reproduce the issue?