Skip to content

Add capped extension - #3706

Merged
lghavami merged 3 commits into
duckdb:mainfrom
hamin:add-capped
Nov 26, 2026
Merged

lghavami merged 3 commits into
duckdb:mainfrom
hamin:add-capped

Conversation

@hamin

@hamin hamin commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Adds capped, a storage extension for tables that forget.

ATTACH 'dir' AS t (TYPE capped) opens a store where each table has a retention policy (ttl, max_bytes, max_rows). Tables are stored as immutable Parquet segments, and retention deletes whole sealed segments, so nothing is rewritten and size caps are exact. Optional per-segment full-text and vector search indexes follow the same retention.

  • Repo: https://github.com/hamin/duckdb-capped (Apache-2.0)
  • Built against DuckDB v2.0.0 with extension-ci-tools v2.0-cyanoptera; the repo's own distribution pipeline passes at the pinned ref.
  • C++ storage layer plus a Rust core (requires_toolchains: rust).
  • Linux and macOS only (musl, Windows and wasm are excluded); osx_amd64 is opted in.

@lghavami

Copy link
Copy Markdown
Member

Hi @hamin, thanks for the PR! It looks like you have some test failures, can you have a look?

@lghavami lghavami added the CI failure CI failure that seems related to the extension label Nov 24, 2026
@hamin

hamin commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Thanks! The fts/vss test extensions were being downloaded for v2.0.0 while CI builds against v2.0.1. That's fixed in hamin/duckdb-capped@ed53771 and the ref is updated. Could you approve the workflow run?

@lghavami
lghavami merged commit 893c9ea into duckdb:main Nov 26, 2026
16 checks passed
@lghavami

Copy link
Copy Markdown
Member

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI failure CI failure that seems related to the extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants