Skip to content

fix: return error for join referencing inaccessible table#5587

Merged
max-sixty merged 1 commit intoPRQL:mainfrom
max-sixty:5280
Nov 29, 2025
Merged

fix: return error for join referencing inaccessible table#5587
max-sixty merged 1 commit intoPRQL:mainfrom
max-sixty:5280

Conversation

@max-sixty
Copy link
Copy Markdown
Member

Summary

  • Fix join inside a group clause causes panic #5280: join inside group clause caused panic when referencing outer table
  • Now returns helpful error: "column references a table not accessible in this context" with hint "join is not supported inside group"
  • Added comments documenting similar .unwrap() patterns that could theoretically panic

Test plan

  • Added test_join_with_inaccessible_table test verifying error is returned
  • All 615 tests pass
  • Clippy clean

🤖 Generated with Claude Code

Previously, a join inside a group clause that referenced an outer table
would panic. Now returns a helpful error message with hint.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@max-sixty max-sixty merged commit 75d6b8b into PRQL:main Nov 29, 2025
36 checks passed
@max-sixty max-sixty deleted the 5280 branch November 29, 2025 19: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.

join inside a group clause causes panic

1 participant