fix: handle grave-escaped property names properly BED-8967 - #107
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughProperty keys are stored in raw form after parsing and escaped when Cypher is emitted. New utilities provide Unicode-aware validation, escaping, and unescaping. Parser, formatter, PostgreSQL translation, query-builder, and integration tests cover special-character keys. ChangesProperty key normalization and formatting
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant CypherParser
participant PropertyKeyUtilities
participant CypherAST
participant CypherFormatter
participant PostgreSQLTranslator
CypherParser->>PropertyKeyUtilities: Unescape and validate parsed key
PropertyKeyUtilities->>CypherAST: Store raw property key
CypherAST->>CypherFormatter: Provide raw property key
CypherFormatter->>PropertyKeyUtilities: Validate and escape key
PropertyKeyUtilities-->>CypherFormatter: Return Cypher-safe key
CypherAST->>PostgreSQLTranslator: Provide normalized property key
PostgreSQLTranslator-->>CypherAST: Return translated property predicate
Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
e34c0a2 to
975576c
Compare
Description
Resolves: BED-8967
Type of Change
Testing
make test_allwithCONNECTION_STRINGset)Screenshots (if appropriate):
Driver Impact
drivers/pg)drivers/neo4j)Checklist
go.mod/go.sumare up to date if dependencies changedSummary by CodeRabbit
Bug Fixes
Tests