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

Incorrect SOQL translation #234

Closed
ledsoft opened this issue May 24, 2024 · 0 comments · Fixed by #242
Closed

Incorrect SOQL translation #234

ledsoft opened this issue May 24, 2024 · 0 comments · Fixed by #242
Labels
Milestone

Comments

@ledsoft
Copy link
Contributor

ledsoft commented May 24, 2024

The following SOQL query (based on a criteria query)

SELECT DISTINCT x FROM X x WHERE x.stove.id = :generatedName0 AND x.hub.id = :generatedName1 AND x.id = :generatedName2

is translated to the following SPARQL:

SELECT DISTINCT ?generatedName2 WHERE {
    ?generatedName2 a <http://example.org/type> .
    ?generatedName2 <http://example.org/properties/stove> ?generatedName0 .
    ?generatedName2 <http://example.org/properties/hub> ?generatedName2 .
}

which is incorrect and results later in the following error:

java.lang.IllegalArgumentException: Parameter 'generatedName1' does not exist in this query.
@ledsoft ledsoft added the bug label May 24, 2024
@ledsoft ledsoft added this to the 2.0.1 milestone May 24, 2024
ledsoft added a commit that referenced this issue Jun 4, 2024
…te referencing another entity in SOQL query.
ledsoft added a commit that referenced this issue Jun 4, 2024
…te referencing another entity in SOQL query.
@ledsoft ledsoft closed this as completed Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant