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

Fix query on unspecified property #191

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dentiny
Copy link
Contributor

@dentiny dentiny commented Dec 25, 2024

Address issue #190

The core idea for this PR is to get all columns in the property graph, and check whether the column to query is accessible or not.

@dentiny dentiny force-pushed the hjiang/fix-undefined-property branch from a40b949 to a78a05d Compare December 25, 2024 20:36
@dentiny dentiny force-pushed the hjiang/fix-undefined-property branch from a78a05d to 491af18 Compare December 25, 2024 21:00
@@ -948,11 +1080,16 @@ PGQMatchFunction::MatchBindReplace(ClientContext &context,
if (ref->where_clause) {
conditions.push_back(std::move(ref->where_clause));
}

CheckColumnBinding(*pg_table, *ref);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having an additional validation function, instead of splitting and baking the validation logic into the multiple for loops seem to make code cleaner.

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