Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`overwrite` parameter in `to_parquet` does nothing

オープン 初心者向け
#633 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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
スター
186
フォーク
113
平均マージ
22時間 45分
マージ済み PR(30日)
14

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

duckdb/duckdb-python のほかの issue

duckdb/duckdb-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。