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

Added a duplicate alias check to the parser. Fixes #153. #154

Merged

Conversation

floriankramer
Copy link
Member

This is a quick fix for #153.
Due to split parsing of aliases in both the parser and the GroupBy operation queries with theoretically equal aliases, that differ in their spelling (e.g. (COUNT(?object) as ?count) and (COUNT(?object) AS ?count)) will be rejected. Due to that the query from the issue is only fixed in so far as it results in an error message instead of a crash.
Better detection of alias equality would require parsing aliases more fully during the parsing stage. I can create a pr for that, but it might be worth waiting until the planned sparql parser replacement, especially as this only concerns a small subset of queries.

Copy link
Member

@niklas88 niklas88 left a comment

Choose a reason for hiding this comment

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

LGTM

@floriankramer floriankramer merged commit 6680993 into ad-freiburg:master Nov 22, 2018
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.

None yet

2 participants