Changelog
duckboost uses semantic versioning. Releases are git tags (v0.0.1, v0.0.2, …) with matching GitHub releases. Targets DuckDB 2.0.1 LTS (“Cinnamon Teal”).
A build from a release tag reports that version, and any other commit reports its short commit hash:
SELECT extension_version FROM duckdb_extensions() WHERE extension_name = 'duckboost';0.1.0 (2026-11-21)
Saved models and SQL scoring
- Fit a named STRUCT with
duckboost_train_rawto save numeric inputs, optional training medians, string dictionaries and trees together.duckboost_predict_rawmatches fields by name when scoring reordered rows. Missing and unseen categories take the model’s missing branch.duckboost_to_sql_rawincludes the fitted mapping in the exported query. Raw-column example duckboost_calibrate_intervalpackages three quantile fits with a correction learned on a separate calibration fold.duckboost_predict_intervalreturns lower, median and upper fields, andduckboost_interval_to_sqlexports all three. Predictions are sorted before calibration and scoring. At 90% target coverage the exact correction for scores 1 through 10 is 10. On 300 untouched vignette rows, the calibrated interval covered 264 (88.0%) with mean width 1.4968. Insufficient calibration rows raise an error. Calibration and coverage example- Raw and interval artifacts use version 3 JSON. Existing positional
DOUBLE[]APIs still read v1/v2 models and write the lowest ensemble format they need. Use the raw or interval functions for their respective artifacts.
Training and export
- Balanced class weights now use the sample-weight totals of training rows. Validation loss reuses the fitted multipliers. In the balanced binary regression fixture, changing 100 validation labels used to move the fixed-round probability between 0.25 and 0.75. Both fits now start at a probability of 0.5 (log-odds zero). Early stopping can still select a different iteration.
- Every SQL tree split emits its left and right children once. Compact binary probability exports reuse the score across all outputs. In a complete depth-eight tree, leaf literal occurrences fell from 6,561 to 256. Compact SQL shrank from 292,757 to 19,843 bytes. Median prepare time on an Apple M2 fell from 254 to 21 ms, and scoring 100,000 rows fell from 188 to 29 ms (three runs, one thread).
- Numeric cuts now follow training observation ranks while retaining all midpoints on low-cardinality features. In the skew fixture the first split moved from 3.5 to 0.5, separating its 10,000 zeros from its 10,000 ones. Numeric bins use packed columns. Sibling histograms use parent subtraction and large feature scans use DuckDB’s thread budget with deterministic tie-breaking.
Measured training results
Three repeats per configuration, Apple M2, DuckDB 2.0.1, seed 7. Times include binning. At eight threads the 200,000-row regression fit went from 5.508 to 2.831 seconds, and maximum process RSS from 152.27 to 147.50 MiB. Binary training went from 4.059 to 2.190 seconds and 155.48 to 147.73 MiB. Standard regression RMSE rose from 0.238832 to 0.240560, and binary log loss rose from 0.048162 to 0.048164. On the 50,000-row, 32-feature skewed workload, RMSE improved from 1.831095 to 0.142511 and training time fell from 1.571 to 0.396 seconds. All revisions, thread counts and export timings
DuckDB 2.0.1 compatibility
These fixes ship in DuckDB 2.0.1 LTS. Both sides of the duckboost benchmark use this engine.
- DuckDB retains qualifying NULL rows when filtering some data written by DuckDB 1.x. This preserves observations entering training or scoring. DuckDB #28355
- DuckDB corrected Parquet
IS NULLpruning for pages with constant string statistics. Missing categories can reach preprocessing correctly. DuckDB #27514 - Window functions now propagate certain build failures under memory pressure, preventing a hang in queries such as window-based split and fold assignments. DuckDB #27596
- DuckDB reduced repeated memory pressure in grouped aggregates with non-spillable states, relevant to surrounding
quantile_contorarg_maxanalytics. Interval calibration uses an exact finite-sample rank. DuckDB #28646
0.0.5 (2026-10-24)
Fixed
duckboost_to_sqlnow writes leaf values, thresholds, and the learning rate asDOUBLEliterals (0.1e0instead of0.10000000000000001). DuckDB 2.0 reads long decimal literals asDECIMAL, so a 200-tree regression export in v0.0.4 could fail withDECIMAL(38,37)overflow. Exported SQL now matchesduckboost_predictwithout aregexp_replaceworkaround.
Documentation
- Getting Started / README now lead with
INSTALL duckboost FROM community(live after community-extensions#3236). - Added
docs/community_extensions_function_descriptions.csvso the community “Added Functions” table can be populated.
0.0.4 (2026-10-21)
Changed
- Pinned
duckdbto the officialv2.0.0release (d54cbbe) andextension-ci-toolsto currentv2.0-cyanoptera(78bd1e4). Local CI /Makefilelabel builds asv2.0.0to match community-extensions. - Kept the
duckdbandextension-ci-toolsgit submodules (required by the extension-template layout for localmake); documented why inPACKAGING.md. - Added
make check-extension-metadatato assert the loadable extension footer carries the expected DuckDB version before a community submission. - Updated README, site, and publish docs for DuckDB 2.0.0 GA; community submission checklist is in
docs/COMMUNITY_PUBLISH.md.
0.0.3 (2026-10-05)
Added
- Classification evaluate metrics
brier_score(aliasbrier),roc_auc_ovr(aliasauc_ovr), androc_auc_ovo(aliasauc_ovo) onduckboost_evaluate_agg. Binary and multiclass are both supported. Scalarduckboost_evaluatereturns the per-row Brier contribution; ROC AUC is aggregate-only.
0.0.2 (2026-10-04)
Fixed
LOAD duckboostworks again in./build/release/duckdbon a fresh clone. Since the DuckDB 2.0 alpha bump on 2026-09-30, the build compiled duckboost but no longer linked it into the shell, soLOAD duckboostfailed withExtension ".../duckboost.duckdb_extension" not found. duckboost is now statically linked into the shell,libduckdbandmake test(#34).
Changed
- Bumped the
duckdbsubmodule to80e17fc(v2.0-cyanoptera) andextension-ci-toolsto969bc76. Macro registration follows DuckDB’sParserOptionsAPI change (#35).
Documentation
- The site is re-rendered from scratch on every publish. The docs workflow builds DuckDB with duckboost and runs every example, so the published output matches
main. Committedsite/_freezeoutput is gone. - New Changelog page on the site, and versioned releases: git tags
vX.Y.Zwith GitHub pre-releases, starting fromv0.0.1. - Clarified that the
.duckdb_extensionfile is for a separate DuckDB 2.0 shell built from the sameduckdbcommit. This repo’s shell already has duckboost linked in.
0.0.1 (2026-10-02)
Soft launch: the first public pre-release, built against the DuckDB 2.0 alpha (v2.0-cyanoptera). Try it by cloning and building this repo. PyPI and CRAN DuckDB 1.x cannot load it, and the community extension store submission waits for DuckDB 2.0.
- Native histogram GBDT trainer with no external dependencies (
backend = 'native', aliasreference): regression and classification, quantile / MAE / expectile objectives, categorical features, leaf-wise and oblivious tree growth, sample weights and early stopping on a validation set. - Training and scoring in SQL:
duckboost_train,duckboost_fit,duckboost_predict,duckboost_predict_proba,duckboost_score,duckboost_evaluate,duckboost_evaluate_aggandduckboost_importance. duckboost_to_sqlexports a model as plain DuckDB SQL (CASE WHENensembles), so scoring needs no extension.duckboost_importreads XGBoost, LightGBM and CatBoost model dumps.- Split and preprocessing macros:
duckboost_initial_split,duckboost_initial_validation_split,duckboost_vfold,duckboost_dummy,duckboost_levels,duckboost_otherand more. - Optional in-process XGBoost / LightGBM training behind
DUCKBOOST_WITH_*build flags, andduckboost_build_info()/duckboost_backends()to inspect a build. - Documentation site with Getting Started, vignettes, a native vs LightGBM benchmark and a SQL reference.
Known issue: on a fresh clone, LOAD duckboost fails in ./build/release/duckdb. Load the file by path instead, LOAD 'build/release/extension/duckboost/duckboost.duckdb_extension';, or update to 0.0.2.