add table visibility control via dune_public config#57
Merged
a-monteiro merged 7 commits intomainfrom Mar 18, 2026
Merged
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
…on incremental runs
0xRobin
previously requested changes
Mar 18, 2026
jeff-dude
approved these changes
Mar 18, 2026
msf
added a commit
that referenced
this pull request
Apr 2, 2026
Companion doc for set_table_visibility macro (#57). Covers meta.dune.public config, folder-level config, combining with datashare, and raw SQL fallback.
jeff-dude
added a commit
that referenced
this pull request
Apr 2, 2026
## Summary Companion documentation for the `set_table_visibility` macro added in #57. Adds `docs/dune-table-visibility.md` and links it from the README docs index. Covers: - `meta.dune.public` config (the sugar over `extra_properties`) - Folder-level config via `dbt_project.yml` - Prod-only behavior - Combining with datashare - Raw SQL fallback for existing tables --------- Co-authored-by: jeff-dude <102681548+jeff-dude@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds
meta.dune.publicto control table accessibility — same ergonomics as datashare config so all Dune-specific settings live in one place undermeta.dune.Set it in the model config block:
{{ config( materialized = 'table' , meta = {"dune": {"public": true}} ) }}Tables default to private. On prod, visibility is applied two ways: for full builds (table materialization or
--full-refresh),extra_propertiesis injected intoCREATE TABLE ... WITH (...)via aproperties()macro override; for incremental runs, anALTER TABLE SET PROPERTIESpost-hook keeps it in sync. Both are no-ops outside the prod target.Fixes DWH-280