Skip to content

fix(cubejs): scaffold primary keys on join targets too#71

Merged
acmeguy merged 1 commit into
mainfrom
fix/scaffold-pk-join-targets
Jul 13, 2026
Merged

fix(cubejs): scaffold primary keys on join targets too#71
acmeguy merged 1 commit into
mainfrom
fix/scaffold-pk-join-targets

Conversation

@acmeguy

@acmeguy acmeguy commented Jul 13, 2026

Copy link
Copy Markdown

Follow-up to #70 — cube requires a primary key on BOTH sides of a join: the compile error also fires for the referenced cube (Rental belongsTo Customer ⇒ Customer needs a pk). Every scaffolded cube with an id-pattern column now gets the hidden primary-key dimension.

Verified locally: 3-table Pagila scaffold compiles and serves Rental/Film/Customer.

🤖 Generated with Claude Code

Follow-up to #70: cube requires a primary key on BOTH sides of a join —
'primary key for X is required when join is defined' also fires for the
referenced cube (Rental belongsTo Customer ⇒ Customer needs a pk). Add the
hidden id-pattern primary-key dimension to every scaffolded cube that has
one, not only cubes that own joins. Verified: 3-table Pagila scaffold now
compiles and serves Rental/Film/Customer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@acmeguy acmeguy merged commit 07fe77a into main Jul 13, 2026
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