Consider loading ICU by default on bundled DuckDB connections
Maintainer antworten meist innerhalb von 6 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 22/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 573
- Forks
- 32
- Ø Merge
- 8 T. 23 Std.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus posit-dev/ggsql
-
Missing `linewidth` and `linetype` aesthetics on histogram and bar layersEvtl. vergeben @teunbrand hat das vor 30 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 61/100
Maintainer antworten meist innerhalb von 6 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 6 Tagen
-
writer
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 6 Tagen
-
plot building
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 6 Tagen
-
Mention DuckDB extensionEvtl. vergeben @Anant-mishra1729 hat das vor 152 Tagen übernommen. Offendocumentation integration
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 6 Tagen
Alle Issues in posit-dev/ggsql
Ähnliche Issues
-
insert: with validation on, `insert()` and `inserter()` fail for a table name that contains `?`Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
ClickHouse/clickhouse-rs#551 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
storytold/craft-anything#2472 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
getsotto/sotto-authenticator#68 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
gemini-api profile defaults to gemini-2.5-flash, which Google reroutes from 2026-12-01Evtl. vergeben @EslamOsama00 hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 4 Tagen