Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

`overwrite` parameter in `to_parquet` does nothing

已关闭 适合新手
#633 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@00200200 已经在做这个了。

开始于 2026年9月29日。

  • #642 来自 @00200200 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
backend, databases

调研方向

查看 Python 绑定中的 write_parquet 方法,很可能在类似 src/duckdb_python/relation.py 的文件中。overwrite 参数应传递给底层的 C++ 函数。检查其他参数的处理方式,并追踪调用以查看 overwrite 在何处被忽略。使用提供的复现脚本编写测试以验证修复。

由索引模型根据 Issue 内容生成。

描述

needs triage
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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

duckdb/duckdb-python 的其他 Issue

查看 duckdb/duckdb-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。