Skip to content

Release 0.11.0: expressions in the sql form - #65

Merged
ekut merged 5 commits into
mainfrom
claude/expression-sql-534e40
Nov 4, 2026
Merged

ekut merged 5 commits into
mainfrom
claude/expression-sql-534e40

Conversation

@ekut

@ekut ekut commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The three Ossie models write every expression as expression: {sql: X} instead of expression: {dialects: [{dialect: ANSI_SQL, expression: X}]}. apache/ossie#617 made the schema accept the sql form, and apache/ossie#640 moved the canonical examples and the spec text to it; ANSI_SQL is no longer a name in the spec. sql is the portable form (OSSIE_SQL_2026), dialects stays for a vendor variant. The commerce.yaml we submit to examples/ has to match this release byte for byte, so the change is made here.

Release 0.11.0. dactopus-ossie-clickhouse reads sql since 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 only dialects, such as the DuckDB extension ossie 0.3.0. The runner requires 0.13.0. Ossie schema version stays 0.2.0.dev0, model numbers do not change, no rebuild needed.

Commits

  • Models: 225 lines (143 commerce, 51 web_analytics, 31 iot), one substitution, nothing else in the files.
  • Tests: check_contracts.py and check_union.py read item["expression"]["sql"]. The DuckDB extension ossie 0.3.0 does not load the sql form (has an 'expression' with no 'dialects' array), so DuckDB.load_model in run_canon.py writes every expression back as an ANSI_SQL dialect in its temporary copy.
  • Docs: the authoring rule in AGENTS.md and CONTRIBUTING.md, and the changelog entry.
  • Review fixes: an empty generator removed from that rewrite in run_canon.py, the format rule in CONTRIBUTING.md rewrapped.
  • Release 0.11.0: the version in the seven dbt_project.yml, the revision in docs/deployment.md, the changelog section with the versions CI ran.

Checks

  • grep -rn 'dialects\|ANSI_SQL' entities/ is empty. Loading origin/main and the new files with yaml.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.
  • apache/ossie validator at upstream/main (includes #640): commerce.yaml and web_analytics.yaml pass. iot.yaml fails on devices.minutes_since_last_contact (MINUTE in DATEDIFF); origin/main's iot.yaml fails 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:
    • shopify: 32 of 42 questions match, 8 refused
    • woocommerce: 32 of 45 questions match, 11 refused
  • ci_local.py validate v2: OK.
  • CI on the release commit: dactopus-ossie-clickhouse 0.12.0, dbt-oss 2.0.11, dbt-core 1.11.16 with dbt-clickhouse 1.10.3, ClickHouse 26.9 and, for WooCommerce, 26.7.

🤖 Generated with Claude Code

ekut and others added 5 commits November 4, 2026 07:47
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>
@ekut ekut changed the title Models: expressions in the sql form Release 0.11.0: expressions in the sql form Nov 4, 2026
@ekut
ekut merged commit 99bc53e into main Nov 4, 2026
15 checks passed
@ekut
ekut deleted the claude/expression-sql-534e40 branch November 4, 2026 00: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