Skip to content

feat!: sql/ and python/ project layout, the Cost page and Snowflake prices, SQLQuack 0.23.0 - #1620

Merged
kvlonge merged 4 commits into
mainfrom
feat/project-layout
Nov 24, 2026
Merged

kvlonge merged 4 commits into
mainfrom
feat/project-layout

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Why

Ships the reviewed batch as one release: the sql/ and python/ project layout, Snowflake pricing and the Cost page, the SQLQuack 0.23.0 and SQLClean 0.12.0 upgrade, and faster release wheels.

Changes

  • Projects keep their SQL under sql/ and their Python under python/; D018 checks the layout, D011 the node file names, and extra_paths lists anything kept on purpose. Sinks become event sinks.
  • Loaders depend on a job or a tag like assets; an unknown tag fails only its own discovered set.
  • Snowflake cost is priced from usd_per_credit, the rate sheet or the list price, recorded per run with its source.
  • New Cost page, a 7-day cost card and folded idle jobs.
  • Discovered sets are framed on the job page; graph cards are drawn in stages.
  • Run output lines keep their own read time; a worker's preparation shows as phase events.
  • UI fixes: one-row selection bar, row hover, Connections, Jobs rows, concurrency panel, copy over HTTP.
  • Release wheels use 16 codegen units.

Breaking: the commit message lists every breaking change and the upgrade order. Projects move to the new layout; upgrade the server, locations and workers together; migrations 0010 and 0011 apply.

This is one commit on purpose: squash merges take their message from the commits.

Verification

  • The head passed verify (make check-ci).
  • The manually dispatched full matrix covers what the PR run skips.
  • Each topic was reviewed and tested on its own branch, with focused Rust (SQLite and PostgreSQL), Python, svelte-check, vitest and Playwright layout runs.
  • The rate-sheet and region queries ran against test fakes only, not a live Snowflake account.

…rices, SQLQuack 0.23.0

Upgrade the server, its schedulers, every location and every worker together, and move each
project to the new layout first:

1. Move the project to the layout below and check it compiles with this release.
2. Pause every schedule and sensor, start no manual runs, and let queued and running runs
   finish, or cancel them.
3. Stop every server process and separate sqb scheduler, then start them on this release,
   which applies control store migrations 0010 and 0011.
4. Upgrade and restart every location and worker, so each publishes its project again.
5. Resume schedules and sensors.

feat(layout): sql/ holds models, seeds, sources, schemas, macros, functions, enums, constants, audits and hooks; python/ holds nodes/, providers/, event_sinks/, materializations/ and adapters/

feat(layout): D018 rejects entries outside the layout; extra_paths lists anything kept on purpose

feat(python-nodes): D011 requires each node in the file named for its kind

feat(python): loaders depend on a job or a tag like assets

feat(cost): price Snowflake cost from usd_per_credit, else the rate sheet, else the list price, recorded per run with its source

feat(ui): the Cost page, a selection's query cost by job and folder down to each model

feat(ui): a 7-day cost card on the Overview, and idle jobs folded in Activity

feat(ui): frame a job's discovered sets and name discovered nodes by their step

feat(ui): graph cards drawn in stages, without the kind word, in IBM Plex Mono

feat(runs): each output line keeps the time the worker read it

feat(runs): a worker's preparation shows as phase events with durations

fix(ui): one-row selection bar without "Reads as", and expandable rows with a hover state

fix(ui): connections one row per target, one job row height, job concurrency as facts, and copy over plain HTTP

fix(ui): run-level events named plainly: Worker ready, no "run run"

fix(discovery): an item depending on an unknown tag fails only its own set

fix(snowflake): a missing schema's listing reads as empty, not as a failed query

fix(event-sinks): a provider teardown that raises shows in the export warning

build(deps): SQLQuack 0.23.0, SQLClean 0.12.0 and Fensu 0.31.2

build: release wheels use 16 codegen units

BREAKING CHANGE: projects must move to the new layout.

- models/, seeds/, sources/, schemas/, macros/, functions/, enums/, constants/, audits/ and
  hooks/ move into sql/. Python nodes move from python/ into python/nodes/; providers/,
  sinks/, materializations/ and adapters/ move into python/providers/, python/event_sinks/,
  python/materializations/ and python/adapters/.
- D018: any other entry at the top level, or inside sql/ or python/, fails compilation.
  Configuration and dependency files, README.md, hidden entries, __pycache__/, target/,
  logs/, local database files and gitignored entries are allowed; list anything else in the
  new top-level extra_paths key.
- D011: one @loader in loader.py, one @asset in asset.py, checks in checks.py, and a factory
  in loaders.py, assets.py or checks.py, or factory.py when it makes several kinds.
- [sinks] becomes [event_sinks], sqlbuild.sinks becomes sqlbuild.event_sinks, and
  command_output_sink becomes command_output_event_sink.
- Import paths follow file paths: python.nodes.*, python.providers.* and sql.macros.*.
- Resource fqns no longer include sql/; compiled and run SQL is written under
  target/compiled/sql/ and target/run/sql/.
- Findings and fixes of the built-in SQLCLEAN Rules change as SQLClean 0.12.0 lists (for
  example SQLCLEAN001 now fixes total=NULL to total IS NULL).
- The run output batch format changed: each segment carries its read_at time and servers
  refuse batches without it. Migration 0010 adds sqb_run_output_segments.read_at.
- Migration 0011 adds the discovered_assets snapshot document, and a discovered set's tags
  in the readDiscovered response are strings.
- _sqlbuild_resource_costs gains usd_per_credit and usd_per_credit_source, added to an
  existing table with ADD COLUMN IF NOT EXISTS the first time it is written.

Refs CHI-1443, CHI-1640, CHI-1643, CHI-1645, CHI-1646, CHI-1647, CHI-1648, CHI-1649, CHI-1650, CHI-1651, CHI-1652, CHI-1653, CHI-1654
…ml and env files in the layout, and finish moving tests to sql/

Delta compiles, the layer-move hint, SQLCLEAN044 advice, scope browsing and two S006 help texts
read models and declarations under sql/. [sinks] and [event_exporters] now fail and name their
replacements. Paths SQLBuild writes inside the project compare in one resolved form on Windows
and macOS.

BREAKING CHANGE: compiled audits are written under target/compiled/sql/audits/ like models and
functions. D018 allows roles.toml at the project root and the file each env_file setting names.
…eside the project, and expect the sql/ layout's compile fingerprints
…ied cache fingerprints, and wait for the cost drill's navigation before Back
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Nov 24, 2026
@kvlonge
kvlonge removed this pull request from the merge queue due to a manual request Nov 24, 2026
@kvlonge
kvlonge merged commit 9ca9327 into main Nov 24, 2026
84 of 86 checks passed
@kvlonge
kvlonge deleted the feat/project-layout branch November 24, 2026 13:53
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