feat(sql): support CROSS JOIN syntax #7573
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 225 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.324
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7573"
general
weight: 0.35
easyrev
Changes Made
Support
FROM a CROSS JOIN bin SQL, which previously failed withUnsupported join type: CrossJoin(None)even though comma joins already supported the same operation.Handle
CrossJoin(JoinConstraint::None)inplan_single_fromusing the existingcross_joinbuilder and column-naming options, then continue processing subsequent joins.Add tests for:
Ordinary
JOINstill requiresONorUSING.Validation
make build.DAFT_RUNNER=native .venv/bin/pytest -q tests/sql: 422 passed, 25 skipped.git diff --checkpassed.AI assistance was used for implementation and test preparation. I reviewed the planner change and test coverage and ran the checks above locally.
Pre-existing column-resolution issue
During validation, I found a pre-existing column-resolution bug involving mixed comma/explicit joins and duplicate column names:
With a.id = 10, b.id = 20, and c.id = 20, this returns (10, 10, 20) instead of (10, 20, 20).
The same incorrect column binding reproduces on main with the already-supported
FROM a, b JOIN c ON b.id = c.id, so it is not introduced by this change.This is related to the broader name-based column-reference and join-renaming problems described in #4270 (duplicate column names / ordinal column references roadmap). That roadmap does not document this exact reproducer. The column-resolution fix remains out of scope for this PR.
Related Issues
Closes #7554.
Related to #7532 (TPC-H Q11
CROSS JOIN).