fix: support found defects in UNWIND query forms - BED-8324#83
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (20)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Fixes two PostgreSQL Cypher translation issues:
count(n) + count(n),count(n) * 2, grouped expressions combined with aggregates, and aggregate expressions projected throughWITH.ORDER BY, includingUNWIND labels(n)aggregation forms like:RETURN label, count(n) AS countORDER BY count DESCORDER BY labelRETURN label AS kind ... ORDER BY kindThis also adds integration and translation coverage for the affected query shapes and validates result key/row shape for the label aggregation queries.
Resolves: BED-8324
Type of Change
Testing
make test_allwithCONNECTION_STRINGset)Validated with:
CONNECTION_STRING='postgres://postgres:bhe4eva@localhost/bhe' make test_pgCONNECTION_STRING='neo4j://neo4j:neo4jj@localhost:7687' make test_neo4jUNWIND labels(n)query formsORDER BY labelScreenshots (if appropriate):
N/A
Driver Impact
drivers/pg)drivers/neo4j)Checklist
go.mod/go.sumare up to date if dependencies changed