Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20005f4577
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Honestly...I'm just not convinced this is worth the maintenance burden 😓. This is quite complex just for more readable SQL. |
|
Keeping this dependency tracking correct across all query-building paths is a lot to maintain for SQL readability alone. I'll close this and the related PRs. Thanks for reviewing. |
This replaces #281, following the suggestion to collect required columns during query construction.
Field references and correlation keys are recorded as expressions and joins are built. The final pass uses this metadata to narrow implicit
from_many?selections, without re-scanning expression ASTs. When dependencies cannot be tracked reliably, the original selection is retained.I've updated the benchmark to compare the upstream base, #281's AST scan, and this implementation with identical dependencies and data.
For the latest Payment query:
The motivation remains easier-to-read SQL; PostgreSQL already prunes unused projections.
Execution integration is in ash-project/ash_postgres#919.
Contributor checklist
Leave anything that you believe does not apply unchecked.