Skip to content

2.2.0 fixes#150

Open
mike-finopsorg wants to merge 6 commits into
devfrom
2.2.0-fixes
Open

2.2.0 fixes#150
mike-finopsorg wants to merge 6 commits into
devfrom
2.2.0-fixes

Conversation

@mike-finopsorg

Copy link
Copy Markdown
Contributor

Corrections for issues found on PR: #147

…hk.meta["special_executor_kind"] = "reference", matching the JSON-schema path.

focus_to_duckdb_converter.py:6455 — _explain_check_sql's special dict now carries "special_kind": special_kind, so consumers can distinguish reference from other special executors. The note ternary at line 6463 now resolves correctly (it was already checking special_kind == "reference").

focus_to_duckdb_converter.py:6546 — print_sql_map's branch is now t == "special" and info.get("special_kind") == "reference", restoring the "Reference to: …" line.

validator.py:327-330 — composite child branch is now child_type == "special" and child.get("special_kind") == "reference", restoring the child_id -> referenced_id mapping.

Signed-off-by: Mike Fuller <mike@finops.org>
…RuleException (mirroring the missing-SchemaId handling), and the per-execution check_schema() call is removed. When jsonschema isn't installed, build-time validation is skipped and the executor's existing RuntimeError still applies.

Signed-off-by: Mike Fuller <mike@finops.org>
…ow_num is the position within the filtered result set, not the source data row.

Signed-off-by: Mike Fuller <mike@finops.org>
…parator() and _violation_condition(), so the comparator check and the violation SQL can't drift, and get_sample_sql() re-validates the comparator too. All 426 tests pass.

Signed-off-by: Mike Fuller <mike@finops.org>
@mike-finopsorg mike-finopsorg self-assigned this Jul 8, 2026
@mike-finopsorg mike-finopsorg changed the base branch from main to dev July 8, 2026 21:29
Signed-off-by: Mike Fuller <mike@finops.org>
Signed-off-by: Mike Fuller <mike@finops.org>
@mike-finopsorg mike-finopsorg mentioned this pull request Jul 9, 2026

@Matt-Cowsert Matt-Cowsert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, clean set of fixes.

The reference-check display bug (checks are stored as special, but the display code was matching on reference, so the "Reference to:" line never printed) and the missing comparator validation on the sample SQL path were both good catches. Moving the schema validation up front for a clean fail-fast is a nice touch too.

One non-blocking note: the reference-display fix doesn't have test coverage yet. Not holding the PR for it, we'll pick that up (and the other coverage areas) in a later PR.

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.

2 participants