Repository navigation
feat(benchmarks): add DuckShop, a dense Snowflake example project - #1245
Merged
Merged
Conversation
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
SQLBuild needs a realistic, dense Snowflake project for exercising the compiler, Rules, unit tests and scenarios, and for measuring Snowflake-to-DuckDB translation during local scenario replay. The existing example projects are too small to show real-world construct mixes.
Changes
benchmarks/duckshop/: 252 Snowflake SQL models (staging, intermediate, marts, snapshots), 5 seeds, SQL and Python functions, macros, enums, constants, generic and singular audits, and reviewed rule exceptions for a fictional duck-themed home goods shop.data_scalevar), offline loader tests, a construct census script, and cleanup SQL.RUNBOOK.mdfor loading, building, testing and capturing on Snowflake, and a README with project status, expected divergences and known SQLBuild limitations.Verification
sqb compile: 0 errors, 0 warnings;sqb format --checkclean; ruff clean; 269 offline loader tests pass.sqb load,sqb build,sqb test(266/266) andsqb scenario test(8/8) pass, andsqb scenario capturesucceeds.sqb scenario test --local --strictfails on 8 of 8, as documented in the README: 5 translation failures, and 3 snapshots reported stale by a SQLBuild fingerprint issue.make check-ciand CI cover the new E2E compile test.