Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Missing ROW_GROUPS_PER_FILE argument in write_parquet function

Đang mở Phù hợp với người mới
#386 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
databases

Hướng nghiên cứu

Bắt đầu từ Python binding cho entry point write_parquet và so sánh các keyword argument được chấp nhận với các tùy chọn Parquet được liên kết trong issue. Tái hiện lỗi bằng query được cung cấp, sau đó xác minh rằng row_groups_per_file được chấp nhận và ví dụ hoàn tất mà không có TypeError.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs triage
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
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?
  • Yes, I have
Did you include all relevant configuration to reproduce the issue?
  • Yes, I have
Ngôn ngữ chính
Python
Star
186
Fork
113
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của duckdb/duckdb-python

Tất cả issue của duckdb/duckdb-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.