[#1178] Added more context info on error messages of query parsing#1179
Conversation
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Walkthrough
ChangesQuery diagnostic context
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/agents/query_engine/PatternMatchingQueryProcessor.cc`:
- Around line 374-376: Update the trailing-elements error handling in
PatternMatchingQueryProcessor so it reports the source position of a
remaining/root execution-stack element rather than the stale cursor value from
the last popped entry. Preserve the relevant position before draining
execution_stack, then use that position in the RAISE_ERROR diagnostic when
element_stack.size() != 1.
- Around line 289-294: Add matching C++ regression tests under src/tests/cpp/
for the updated diagnostics in PatternMatchingQueryProcessor and related
operator-builder paths. Verify invalid-token and trailing-element errors include
the query text and correct cursor positions, and cover every too-few-arguments
path with its expected diagnostic contract.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: b4edbc1c-2355-4709-93d2-f2e89aed06bc
⛔ Files ignored due to path filters (1)
src/MODULE.bazel.lockis excluded by!**/*.lock,!**/*.lock
📒 Files selected for processing (1)
src/agents/query_engine/PatternMatchingQueryProcessor.cc
|
@CodeRabbit review |
✅ Action performedReview finished.
|
|
@CodeRabbit approve |
✅ Action performedComments resolved and changes approved. |
Resolves #1178