`overwrite` parameter in `to_parquet` does nothing
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
- 75/100
Hướng nghiên cứu
Xem xét phương thức write_parquet trong các liên kết Python, có thể trong một tệp như src/duckdb_python/relation.py hoặc tương tự. Tham số overwrite cần được chuyển đến hàm C++ cơ bản. Kiểm tra cách các tham số khác được xử lý và truy tìm lệnh gọi để xem overwrite bị bỏ qua ở đâu. Viết một bài kiểm tra bằng cách sử dụng tập lệnh tái tạo được cung cấp để xác minh bản sửa lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 186
- Fork
- 113
- Merge trung bình
- 22 giờ 45 phút
- Pull request đã merge (30 ngày)
- 14
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của duckdb/duckdb-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
duckdb/duckdb-python#627 ·
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
duckdb/duckdb-python#576 · 3 bình luận ·
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
duckdb/duckdb-python#534 ·
-
needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
duckdb/duckdb-python#386 ·
-
needs triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
duckdb/duckdb-python#622 ·
Tất cả issue của duckdb/duckdb-python
Issue tương tự
-
agent-ready documentation needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Add https://search.jeremyh.xyz/ Đang mởinstance instance add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
searxng/searx-instances#939 · 1 bình luận ·
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100