Skip to content

feat: support self-joins and alias-based prefixing in YAML#205

Merged
hussainsultan merged 1 commit intomainfrom
fix/yaml-self-joins
Mar 9, 2026
Merged

feat: support self-joins and alias-based prefixing in YAML#205
hussainsultan merged 1 commit intomainfrom
fix/yaml-self-joins

Conversation

@boringdata
Copy link
Owner

Summary

  • Support joining the same model multiple times in YAML with different aliases (Self-joins not yet supported wiht YAML #114)
  • Auto-create aliased copies with distinct table references for self-joins
  • Use YAML join alias for dimension prefixing (e.g., origin_airport.city instead of airports.city)

Test plan

  • test_yaml_self_joins — same airports model joined as origin + destination
  • All existing YAML tests pass (35 total)

Closes #114

🤖 Generated with Claude Code

When the same model is joined multiple times (e.g., airports as both
origin and destination), auto-create aliased copies with distinct
table references. Also alias joins when the YAML key differs from
the model name so dimension prefixes match the alias.

Closes #114

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hussainsultan hussainsultan merged commit b9f567d into main Mar 9, 2026
3 checks passed
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.

Self-joins not yet supported wiht YAML

2 participants