Skip to content

Avoid floating point error in geohashesInBox #11369#12006

Merged
alexey-milovidov merged 3 commits intomasterfrom
fix-error-geohash
Jun 28, 2020
Merged

Avoid floating point error in geohashesInBox #11369#12006
alexey-milovidov merged 3 commits intomasterfrom
fix-error-geohash

Conversation

@alexey-milovidov
Copy link
Member

@alexey-milovidov alexey-milovidov commented Jun 27, 2020

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Avoid returning wrong number of geohashes in function geoHashesInBox due to accumulation of floating point error. This fixes #11369.

Detailed description / Documentation draft:
That's exactly what clang-tidy told us.

This bugfix is insignificant, no need to backport.

@blinkov blinkov added the pr-bugfix Pull request with bugfix, not backported by default label Jun 27, 2020
@alexey-milovidov alexey-milovidov merged commit aaadc8a into master Jun 28, 2020
@alexey-milovidov alexey-milovidov deleted the fix-error-geohash branch June 28, 2020 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-no-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DB::geohashesInBox(): Assertion `items <= args.items_count'

2 participants