Repository navigation
feat!: sql/ and python/ project layout, the Cost page and Snowflake prices, SQLQuack 0.23.0 - #1620
Merged
Merged
Conversation
…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
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.
Why
Ships the reviewed batch as one release: the
sql/andpython/project layout, Snowflake pricing and the Cost page, the SQLQuack 0.23.0 and SQLClean 0.12.0 upgrade, and faster release wheels.Changes
sql/and their Python underpython/; D018 checks the layout, D011 the node file names, andextra_pathslists anything kept on purpose. Sinks become event sinks.usd_per_credit, the rate sheet or the list price, recorded per run with its source.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
verify(make check-ci).