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

Fix plan view for DbHits over 32 bit integer max #1938

Merged

Conversation

OskarDamkjaer
Copy link
Contributor

Some of the statistics from the driver are wrong for large numbers. It’s reproducible by calling PROFILE MATCH (n:Person|Node) return count(*) on a database where you have over 32 bit signed integer max nodes (about two billion) with these labels. You’ll see that the rows & dbHits numbers will be negative.

This is caused by a four year old dormant bug in the driver code, I've reached out to the drivers team and there was nothing preventing us from using this workaround until it is fixed in the driver.

@OskarDamkjaer OskarDamkjaer merged commit 7973dee into neo4j:master Sep 14, 2023
13 checks passed
@OskarDamkjaer OskarDamkjaer deleted the handle_large_numbers_in_plan branch September 14, 2023 06:30
@OskarDamkjaer OskarDamkjaer changed the title Work around incorrect counts for large numbers in plan view Fix plan view for DbHits over 32 bit integer max Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant