Skip to content

fix: mitigate SQLSTATE42P01 errors BED-5742#34

Draft
urangel wants to merge 2 commits intomainfrom
BED-5742
Draft

fix: mitigate SQLSTATE42P01 errors BED-5742#34
urangel wants to merge 2 commits intomainfrom
BED-5742

Conversation

@urangel
Copy link

@urangel urangel commented Feb 19, 2026

Queries that contain bound right nodes that are referenced in a different frame result in translations that surface the SQLSTATE42P01 error upon query execution. Selectivity optimization rewrites that flip query directions seem to be part of the underlying issue.

This fix mitigates these errors in some queries that are experiencing the issue by increasing the selectivity measure for bound nodes which decreases the chance of a query rewrite.

While these changes prevent errors in some of the queries noted in the issue there are other discrepancies that may still be related to bound right nodes not joining correctly.

Fixes:

  • Error noted in BED-5712
  • Error noted in BED-5418
  • Error noted in BP-1687

Does not fix:

  • result sets with edges that are only a partial match
  • result sets that do not uphold terminal node constraints across recursive expansion
  • BED-5463
  • BP-1573
  • BP-1590

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch BED-5742

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Comments