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

Wrong GEOSEARCH response format #4382

Open
MartinKolarik opened this issue Dec 28, 2024 · 1 comment
Open

Wrong GEOSEARCH response format #4382

MartinKolarik opened this issue Dec 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MartinKolarik
Copy link

Describe the bug

Based on the documentation:

Without any WITH option specified, the command just returns a linear array like ["New York","Milan","Paris"].
If WITHCOORD, WITHDIST or WITHHASH options are specified, the command returns an array of arrays, where each sub-array represents a single item.

However, Dragonfly returns an array of arrays in all cases

To Reproduce
Steps to reproduce the behavior:

> geoadd list 1 1 A
(integer) 1

> geosearch list FROMLONLAT 1 1 BYRADIUS 10 km
1) 1) "A" <-- NESTED ARRAY RETURNED

Expected behavior

Should match the documentation and Redis behavior:

> geoadd list 1 1 A
(integer) 1

> geosearch list FROMLONLAT 1 1 BYRADIUS 10 km
1) "A"

Environment (please complete the following information):

  • OS: Ubuntu 24
  • Kernel: 5.15.153.1
  • Containerized?: Docker
  • Dragonfly Version: v1.26.0-c5ef553ffcc9f2f4070af4a3575c2ac0a4ccc035
@BagritsevichStepan
Copy link
Contributor

Hi @MartinKolarik, thank you for reporting this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants