Skip to content

Conversation

@sazzad16
Copy link
Contributor

@sazzad16 sazzad16 commented Apr 14, 2021

Resolves #111

@sazzad16 sazzad16 requested a review from gkorland April 14, 2021 14:21
@gkorland gkorland requested a review from DvirDukhan April 14, 2021 14:35
Copy link
Contributor

@gkorland gkorland left a comment

Choose a reason for hiding this comment

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

Please cover the toString and hash Point functions

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Apr 21, 2021

This pull request introduces 1 alert when merging cd3ea1d into d84af9a - view on LGTM.com

new alerts:

  • 1 for Inconsistent equals and hashCode

This reverts commit 629500d.
gkorland
gkorland previously approved these changes Apr 21, 2021
 Conflicts:
	src/test/java/com/redislabs/redisgraph/RedisGraphAPITest.java
Comment on lines +49 to +50
return Math.abs(latitude - o.latitude) < EPSILON &&
Math.abs(longitude - o.longitude) < EPSILON;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should find the mapping format (datum) resolution and infer EPSILON from it, otherwise, we can get wrong results here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@DvirDukhan I'd prefer to avoid that. The difference is already very low and datum resolution would just bring more precision issue. More importantly, we are not calculating the distance here. We are just trying to check if the latitudes and longitudes (both plural) can be considered same.

@gkorland gkorland requested a review from DvirDukhan May 25, 2021 11:57
@bsbodden
Copy link
Contributor

bsbodden commented Jun 1, 2021

@gkorland I'll be happy to review if you guys are backed up.

@sazzad16 sazzad16 merged commit 5e1de05 into RedisGraph:master Jul 29, 2021
@sazzad16 sazzad16 deleted the point branch July 29, 2021 14:57
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.

Support for point() type and function

4 participants