Skip to content

docs: pass --builtin-policy where census, function and index examples need it - #117

Merged
kvlonge merged 1 commit into
mainfrom
docs/census-policy
Nov 6, 2026
Merged

kvlonge merged 1 commit into
mainfrom
docs/census-policy

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Docs-only (D259). Every printed CLI command on the homepage and in the docs was run in a dbt project with no sqlquack.toml, on main c3555dd.

Fails with "no policy file at sqlquack.toml" (exit 2) and gets --builtin-policy here:

  • homepage 05 and /docs/cli/census/: sqlquack census target/compiled/my_project/models --schema schema.json. The printed output is re-run with the flag over jaffle_shop compiled by dbt-snowflake 1.12 as my_project: 25 files, 23 convertible, 2 refused on the SUM divergence.
  • /docs/cli/census/: census target/compiled --chain-models --json
  • /docs/cli/convert/: convert query.sql --schema schema.json
  • /docs/cli/function/ and /docs/cli/index-command/ usage lines

Left as they are:

  • homepage 04 and /docs/policy/ convert due.sql --schema schema.json: each shows the policy file it runs with, and the printed output matches with that file.
  • homepage hero convert revenue.sql --schema schema.json: kept by an earlier decision; raised separately.

Checks: website engine build, site build, check_figures, check_links, test:engine and generate_diagnostics --check all exit 0. Public-repository hygiene scan clean.

… need it

Without a sqlquack.toml in the working directory, census, function, index and
convert exit 2. The census example's output is re-run on main c3555dd over
jaffle_shop compiled by dbt-snowflake as my_project. The policy page and the
homepage's policy section keep their bare commands: each shows the policy file
it runs with.
@kvlonge
kvlonge merged commit ab479a1 into main Nov 6, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant