Tracking: external storage support for Materialized Views and Dynamic Tables

Open
#20,809 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@dantengsky is already working on this.

Since Oct 23, 2026.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend, databases

Research direction

Read the linked context for #20674 and PR #20689, then inspect the binders for Materialized Views and Dynamic Tables mentioned in the issue. Check sub-issues #20810 and #20811 to see their scopes. Done means both table kinds support external storage and follow the stated table-option-over-database-default storage class rules.

Written by the indexing model from the issue text.

Description

C-feature

Background

#20674 (PR #20689) adds database/table level S3 storage class support. Storage classes only apply
to tables on external storage; internal tables always follow the server [storage.s3].storage_class.

Materialized Views and Dynamic Tables do not support external storage yet. Their binders hard-code
storage_params: None, so they are always created on the default (internal) storage. As a result they:

  • ignore the database DEFAULT_STORAGE_CONNECTION / DEFAULT_STORAGE_PATH,
  • do not inherit DEFAULT_S3_STORAGE_CLASS, and reject an explicit S3_STORAGE_CLASS.

Sub-issues

  • #20810
  • #20811

Once a table kind supports external storage, it should follow the existing storage class rules of
#20689 (table option > database default inherited at creation), based on the database it belongs to,
not on its source tables.

Dominant language
Rust
Stars
9.5k
Forks
903
Avg merge
2d 13h
Merged PRs (30d)
204

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from databendlabs/databend

All issues in databendlabs/databend

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.