Repository navigation
Add Geo Commands - #1745
Add Geo Commands#1745mattsta wants to merge 1 commit into
Conversation
Current todo:
- replace functions in zset.{c,h} with a new unified Redis
zset access API.
Once we get the zset interface fixed, we can squash
relevant commits in this branch and have one nice commit
to merge into unstable.
This commit adds:
- Geo commands
- Tests; runnable with: ./runtest --single unit/geo
- Geo helpers in deps/geohash-int/
- src/geo.{c,h} and src/geojson.{c,h} implementing geo commands
- Updated build configurations to get everything working
- TEMPORARY: src/zset.{c,h} implementing zset score and zset
range reading without writing to client output buffers.
- Modified linkage of one t_zset.c function for use in zset.c
|
Status: want merge, not enough refactoring of the zset internal functions... This should work like quicklists I guess to be a non-brainer, that is: the basic zset API should be tested much better than currently it is in a direct way (currently it is mostly tested in an indirect way), and later the refactoring effort should be done. |
|
Update on this issue: I'm in the process of merging the code (minus the JSON part). Unfortunately the PR already failed in the
|
|
Ok Item "3" is sorted out: it's just the test failure that checks the output after the digit the precision is not going to be equal between different systems double->string conversion apparently. Only happens in the JSON output for digits which are non significant. That's good news. |
|
Everything merged. Thanks. |
This commit integrates geo commands (https://matt.sh/redis-geo) into Redis.
The only major remaining issue I'm aware of is: we need to clean up my copy/pasted zset access functions in
zset.{c,h}with a correct zset access API.Once we get the zset interface fixed, we can squash
relevant commits in this branch and have one nice commit
to merge into unstable.
This commit adds:
range reading without writing to client output buffers.