Skip to content

fix: resolve Snowflake output aliases - #716

Merged
chio-labs-delivery[bot] merged 1 commit into
mainfrom
fix/snowflake-output-alias-binding
Sep 18, 2026
Merged

chio-labs-delivery[bot] merged 1 commit into
mainfrom
fix/snowflake-output-alias-binding

Conversation

@kvlonge

@kvlonge kvlonge commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Why

The native schema validator reports valid Snowflake output aliases as unknown or ambiguous when they are reused later in the SELECT, in its WHERE clause, or in ORDER BY.

Changes

  • accept an unknown Snowflake name only when AST evidence proves it references an earlier output alias in the same SELECT or an output alias in that SELECT's WHERE
  • accept an ambiguous ORDER BY name only when AST evidence proves the same SELECT declares that output alias
  • retain findings for forward references, unrelated unknown names, other clauses, quoted names, and other dialects

Verification

  • focused schema-validation tests after rebasing over the VALUES compatibility fix: 14 passed
  • Ruff and Ty checks passed for touched files
  • Fensu passed
  • uv sync --all-extras
  • make check-ci after conflict resolution
  • public-repository hygiene scan
  • cache-free static compile of the downstream 974-model project with the three affected alias boundaries and the adjacent VALUES boundary enabled together: 0 errors, 0 warnings

@chio-labs-delivery
chio-labs-delivery Bot enabled auto-merge (squash) September 18, 2026 00:56
@kvlonge
kvlonge force-pushed the fix/snowflake-output-alias-binding branch from 8123116 to 63774eb Compare September 18, 2026 01:00
@chio-labs-delivery
chio-labs-delivery Bot merged commit df68807 into main Sep 18, 2026
19 checks passed
@chio-labs-delivery
chio-labs-delivery Bot deleted the fix/snowflake-output-alias-binding branch September 18, 2026 01:12
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