Skip to content

fix(postprocess): when redirecting sort columns, look up the relation from the matching table_ref#5486

Merged
max-sixty merged 1 commit intoPRQL:mainfrom
lukapeschke:look-up-relation-id-from-table-ref
Oct 9, 2025
Merged

fix(postprocess): when redirecting sort columns, look up the relation from the matching table_ref#5486
max-sixty merged 1 commit intoPRQL:mainfrom
lukapeschke:look-up-relation-id-from-table-ref

Conversation

@lukapeschke
Copy link
Copy Markdown
Contributor

It was done by converting the CTE's table id into an RIId for now, but those can differ in case some CTEs get erased. This resulted in the wrong CId redirect being updated.

Fixing this by finding a relation instance whose table_ref's source matches the CTE's table_id instead.

Follow up of #5464

… from the matching table_ref

It was done by converting the CTE's table id into an RIId for now, but those can differ in case
some CTEs get erased. This resulted in the wrong CId redirect being updated.

Fixing this by finding a relation instance whose table_ref's source matches the CTE's table_id instead.

Follow up of PRQL#5464

Signed-off-by: Luka Peschke <mail@lukapeschke.com>
@lukapeschke
Copy link
Copy Markdown
Contributor Author

Hi @max-sixty, I've missed this subtelty in #5464 , my bad 😕 could you please have a look ?

@max-sixty max-sixty merged commit 33401ff into PRQL:main Oct 9, 2025
35 of 36 checks passed
@max-sixty
Copy link
Copy Markdown
Member

nice, thanks!

@lukapeschke lukapeschke deleted the look-up-relation-id-from-table-ref branch October 10, 2025 07:54
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