Skip to content

fix: respect explicit LIMIT in Cypher query_graph#40

Open
re-thc wants to merge 1 commit intoDeusData:mainfrom
re-thc:fix/respect-explicit-cypher-limit
Open

fix: respect explicit LIMIT in Cypher query_graph#40
re-thc wants to merge 1 commit intoDeusData:mainfrom
re-thc:fix/respect-explicit-cypher-limit

Conversation

@re-thc
Copy link

@re-thc re-thc commented Mar 11, 2026

applyLimit() silently caps all query results to maxResultRows (200), even when the
user provides a higher explicit LIMIT clause.

A query like MATCH (f:Function) RETURN
f.name LIMIT 500 still returns at most 200 rows with no warning. This also causes
COUNT() aggregations to undercount when the pre-aggregation result set exceeds 200
rows.

applyLimit() silently capped all results to maxResultRows (200), even
when the user specified a higher LIMIT clause. This caused aggregation
queries like COUNT() to silently undercount when the dataset exceeded
200 rows.

Now explicit LIMIT values are respected as-is. The 200-row default
still applies when no LIMIT clause is provided.
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