`overwrite` parameter in `to_parquet` does nothing
维护者通常 1 天内回复
评估
调研方向
查看 Python 绑定中的 write_parquet 方法,很可能在类似 src/duckdb_python/relation.py 的文件中。overwrite 参数应传递给底层的 C++ 函数。检查其他参数的处理方式,并追踪调用以查看 overwrite 在何处被忽略。使用提供的复现脚本编写测试以验证修复。
由索引模型根据 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
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?
- Yes, I have
Did you include all relevant configuration to reproduce the issue?
- Yes, I have
- 主要语言
- Python
- 星标
- 191
- 派生
- 120
- 平均合并
- 1 天 20 分钟
- 30 天内合并 PR
- 41
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
duckdb/duckdb-python 的其他 Issue
-
duckdb.experimental.spark fails to import without typing_extensions, which is not a runtime dependency可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
duckdb/duckdb-python#653 ·
维护者通常 1 天内回复
-
Type stubs omit the `connection` keyword on module-level `read_json` and `write_csv`可能已有人在做 @tojacob03 于 19 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
duckdb/duckdb-python#627 · 1 条评论 ·
维护者通常 1 天内回复
-
`read_json` accepts a list of paths at runtime but the type stub only allows a single path.可能已有人在做 @aleks-drozy 于 77 天前认领。 未关闭needs triage
难度 2/5 1-3 小时 新手友好度 78/100
duckdb/duckdb-python#576 · 1 条评论 ·
维护者通常 1 天内回复
-
Possible reference leak of the argument tuple in `FunctionCall()`可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭needs triage
难度 2/5 1-3 小时 新手友好度 76/100
duckdb/duckdb-python#534 ·
维护者通常 1 天内回复
-
Missing ROW_GROUPS_PER_FILE argument in write_parquet function可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭needs triage
难度 2/5 1-3 小时 新手友好度 68/100
duckdb/duckdb-python#386 ·
维护者通常 1 天内回复
查看 duckdb/duckdb-python 的全部 Issue
相似的 Issue
-
comp/cli P3 type/security
难度 2/5 1-3 小时 新手友好度 68/100
NousResearch/hermes-agent#141420 · 1 条评论 ·
维护者通常 1 天内回复
-
vendor-pitch
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 1 天内回复
-
bug llm p2
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
New tool: ZIPZAX Python Notebook Studio可能已有人在做 @github-actions 今天认领。 未关闭submission triage
难度 1/5 1 小时以内 新手友好度 68/100
kausalflow/tools#226 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100