Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes bug with preparser options making semantic errors not show up correctly #295

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ncordon
Copy link
Collaborator

@ncordon ncordon commented Nov 20, 2024

What

It only extracts the statement in the command parsing, omitting the preparsing options.

Why

We were not showing semantic errors correctly for queries that included a preparsing option, because the semantic analysis does not have a preparser inside, it expects already a pre-processed query.

EXPLAIN MATCH (n)
// It should be showing an error in the MATCH (n) here because we are missing a RETURN

Copy link

changeset-bot bot commented Nov 20, 2024

⚠️ No Changeset found

Latest commit: 714d25f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ncordon ncordon changed the title Adds test for preparser options making errors to not show up correctly Fixes bug with preparser options making semantic errors not show up correctly Nov 21, 2024
Copy link
Collaborator

@anderson4j anderson4j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@ncordon ncordon merged commit 13c81dc into main Nov 27, 2024
4 checks passed
@ncordon ncordon deleted the preparser-semantic-errors branch November 27, 2024 11:07
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.

2 participants