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

Ensure generated not-join clauses only join lvars used in the body #1

Open
mkremins opened this issue May 6, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mkremins
Copy link
Owner

mkremins commented May 6, 2021

If we generate a not-join clause that lists three variables to join, e.g. (not-join [?e1 ?e2 ?e3] ...), and only two of these variables are referenced in the body of the not-join clause, we'll get the following error when we execute the query:

"Join variable not declared inside clauses"

This seems to happen even if all the joined variables are bound outside the not-join clause. Therefore, when we generate a not-join clause, we should omit lvars not used in the clause's body from the list of lvars to join.

@mkremins mkremins added the bug Something isn't working label Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant