Consider loading ICU by default on bundled DuckDB connections
Maintainer thường phản hồi trong vòng 6 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 22/100
Hướng nghiên cứu
The issue asks maintainers to choose among several options for loading the ICU extension in the bundled DuckDB engine, so there is no single change to make yet. Start by reproducing the binder error with SELECT TIMESTAMPTZ '2026-10-14 05:00:00+00' - INTERVAL 1 MONTH; and checking duckdb_extensions() before and after INSTALL icu; LOAD icu. Done means a maintainer has picked a direction, such as static linking, loading on connection open, or documenting the behaviour, and the team has agreed on it.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
ggsql's bundled DuckDB starts with no extensions loaded. DuckDB's own documentation treats ICU as effectively built in: the timestamptz functions page says "Time zone support is provided by the built-in ICU extension", and the timestamp types page notes that INSTALL/LOAD "are only required if the DuckDB client does not bundle the ICU extension". The CLI and Python client do bundle it. So SQL written against the docs can fail on ggsql's engine with a binder error.
Concrete example, from downstream testing in querychat (LLM-generated SQL executed on the bundled engine):
SELECT TIMESTAMPTZ '2026-10-14 05:00:00+00' - INTERVAL 1 MONTH;
-- Binder Error: No function matches the given name and argument types
-- '-(TIMESTAMP WITH TIME ZONE, INTERVAL)'.
The same statement works out of the box in duckdb-python. Mechanism, as verified on bundled v1.5.2: duckdb_extensions() shows icu as neither installed nor loaded; after INSTALL icu; LOAD icu the query succeeds.
Besides timestamptz arithmetic, ICU provides time zone support (AT TIME ZONE, tz-aware casts and comparisons) and locale-aware collations.
Trade-offs, so this is a "please consider" rather than a "please do":
INSTALLdownloads the extension (network on first use); ggsql alreadyLOADs but neverINSTALLsspatial, presumably for that reason.- Loading ICU makes timestamptz semantics depend on the local
TimeZonesetting, so the same SQL can return different results on different machines. - Statically linking ICU (the Python/CLI approach) costs binary size and compile time.
Possible directions: statically link ICU in the bundled build; LOAD icu on connection open when already installed; enable autoload_known_extensions; or document that the bundled engine starts extension-free and leave loading to embedders. querychat now does the last of these itself (it loads ICU and spatial on the cache connection at startup), so this isn't blocking us.
- Ngôn ngữ chính
- Rust
- Star
- 573
- Fork
- 32
- Merge trung bình
- 8 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 posit-dev/ggsql
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layersCó thể đã có người làm @teunbrand đã nhận 30 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 6 ngày
-
writer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 6 ngày
-
plot building
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 6 ngày
-
Mention DuckDB extensionCó thể đã có người làm @Anant-mishra1729 đã nhận 152 ngày trước. Đang mởdocumentation integration
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của posit-dev/ggsql
Issue tương tự
-
insert: with validation on, `insert()` and `inserter()` fail for a table name that contains `?`Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ClickHouse/clickhouse-rs#551 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
storytold/craft-anything#2472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsotto/sotto-authenticator#68 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Project submission: AegisĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
gemini-api profile defaults to gemini-2.5-flash, which Google reroutes from 2026-12-01Có thể đã có người làm @EslamOsama00 đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 4 ngày