Skip to content

Fix LIMIT 0 not being transformed to algebra - #175

Merged
jitsedesmet merged 5 commits into
comunica:mainfrom
noahvsb:fix/limit-0-parsing
Aug 11, 2026
Merged

Fix LIMIT 0 not being transformed to algebra#175
jitsedesmet merged 5 commits into
comunica:mainfrom
noahvsb:fix/limit-0-parsing

Conversation

@noahvsb

@noahvsb noahvsb commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

LIMIT 0 was not transformed to algebra because 0 would make the condition be falsy.

Also added a packages/test-utils/statics/algebra/README.md that explains how you're supposed to add new tests.

This fixes part of comunica/comunica#1736.

@jitsedesmet jitsedesmet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the README. Few questions.

Comment thread packages/algebra-transformations-1-1/lib/toAlgebra/aggregate.ts Outdated
Comment thread packages/test-utils/statics/algebra/algebra/dawg-syntax/limit-offset/05.json Outdated
@noahvsb

noahvsb commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

There seems to be an issue with the generator for the canonical files.

@noahvsb

noahvsb commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Fixed :)

@noahvsb
noahvsb requested a review from jitsedesmet August 11, 2026 11:57

@jitsedesmet jitsedesmet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! great work!

@jitsedesmet
jitsedesmet merged commit 351e1ab into comunica:main Aug 11, 2026
25 checks passed
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