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(query): return empty result if nothing found for geo queries #7651

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented Mar 25, 2021

This PR fixes an error returned if there are no uids for geo query.
Query:

{
  tourist(func: near(loc, [-122.469829, 37.771935], 1000) ) {
    name
  }
}

Expected result:

"data": {
    "tourist": []
  },

Actual result:

"errors": [
    {
      "message": ": can't find 0th integer in a bitmap with only 0 items",
      "extensions": {
        "code": "ErrorInvalidRequest"
      }
    }

This change is Reviewable

@NamanJain8 NamanJain8 changed the title fix(query): don't return error if no result found for geo queries fix(query): return empty result if nothing found for geo queries Mar 25, 2021
@NamanJain8 NamanJain8 merged commit 0f1ee1e into master Mar 25, 2021
@NamanJain8 NamanJain8 deleted the naman/numgo branch March 25, 2021 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants