Repository navigation
Release 0.11.0: expressions in the sql form - #65
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The DuckDB extension ossie 0.3.0 loads only dialects, so run_canon writes the expressions back in that form for it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
The three Ossie models write every expression as
expression: {sql: X}instead ofexpression: {dialects: [{dialect: ANSI_SQL, expression: X}]}. apache/ossie#617 made the schema accept thesqlform, and apache/ossie#640 moved the canonical examples and the spec text to it;ANSI_SQLis no longer a name in the spec.sqlis the portable form (OSSIE_SQL_2026),dialectsstays for a vendor variant. Thecommerce.yamlwe submit toexamples/has to match this release byte for byte, so the change is made here.Release 0.11.0. dactopus-ossie-clickhouse reads
sqlsince 0.11.0, so the models no longer load in an older executor (0.10.0's models loaded in 0.10.1), nor in an Ossie tool that reads onlydialects, such as the DuckDB extensionossie0.3.0. The runner requires 0.13.0. Ossie schema version stays0.2.0.dev0, model numbers do not change, no rebuild needed.Commits
commerce, 51web_analytics, 31iot), one substitution, nothing else in the files.check_contracts.pyandcheck_union.pyreaditem["expression"]["sql"]. The DuckDB extensionossie0.3.0 does not load thesqlform (has an 'expression' with no 'dialects' array), soDuckDB.load_modelinrun_canon.pywrites every expression back as anANSI_SQLdialect in its temporary copy.AGENTS.mdandCONTRIBUTING.md, and the changelog entry.run_canon.py, the format rule inCONTRIBUTING.mdrewrapped.dbt_project.yml, therevisionindocs/deployment.md, the changelog section with the versions CI ran.Checks
grep -rn 'dialects\|ANSI_SQL' entities/is empty. Loadingorigin/mainand the new files withyaml.safe_load, the old form converted to{sql: X}gives equal documents for all three files.dactopus-ossie-clickhouse validate entities/*.yaml(0.13.0): ok.upstream/main(includes #640):commerce.yamlandweb_analytics.yamlpass.iot.yamlfails ondevices.minutes_since_last_contact(MINUTEinDATEDIFF);origin/main'siot.yamlfails with the identical error (only the dialect label in the message differs), so it is not a regression.tests/check_contracts.py: contracts agree.run_canon.py --engine clickhouse: shopify 42 of 42, woocommerce 45 of 45;--windows: 4 of 4 for each.run_canon.py --engine duckdb, before (origin/main) and after the change, output identical, and the same after the review fixes:ci_local.py validate v2: OK.dbt-oss2.0.11,dbt-core1.11.16 withdbt-clickhouse1.10.3, ClickHouse 26.9 and, for WooCommerce, 26.7.🤖 Generated with Claude Code