duckdb / duckdb/duckdb-python

Missing ROW_GROUPS_PER_FILE argument in write_parquet function

オープン 初心者向け
#386 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
needs triage
主要言語
Python
スター
187
フォーク
112
平均マージ
13時間 29分
マージ済み PR(30日)
17

説明

### What happens?

```
TypeError: write_parquet(): incompatible function arguments. The following argument types are supported:
1. (self: _duckdb.DuckDBPyRelation, file_name: str, *, compression: object = None, field_ids: object = None, row_group_size_bytes: object = None, row_group_size: object = None, overwrite: object = None, per_thread_output: object = None, use_tmp_file: object = None, partition_by: object = None, write_partition_columns: object = None, append: object = None, filename_pattern: object = None, file_size_bytes: object = None) -> None
```
while invoking the write parquet function with the params that are accepted and documented in https://duckdb.org/docs/current/sql/statements/copy#parquet-options

### To Reproduce

```python
import duckdb

con = duckdb.connect()
con.sql("select 1 as test").write_parquet("test.parquet", row_groups_per_file=2)
```

### OS:

Ubuntu Linux x86_64

### DuckDB Package Version:

1.5.0

### Python Version:

1.13.1

### Full Name:

Niccolò Cantù

### Affiliation:

Norwegian Institute for Nature Research (NINA)

### 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?

- [x] Yes, I have

### Did you include all relevant configuration to reproduce the issue?

- [x] Yes, I have

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

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

調査の方向性

write_parquet エントリーポイントの Python バインディングから始め、受け付けられるキーワード引数を issue にリンクされている Parquet オプションと比較します。提供されたクエリで失敗を再現し、その後 row_groups_per_file が受け付けられ、例が TypeError なしで完了することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
databases
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
68/100

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

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