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

Issue with filtering by comparison #96

Open
dpopp07 opened this issue Jun 27, 2024 · 2 comments · May be fixed by #99
Open

Issue with filtering by comparison #96

dpopp07 opened this issue Jun 27, 2024 · 2 comments · May be fixed by #99

Comments

@dpopp07
Copy link

dpopp07 commented Jun 27, 2024

The Go package does not seem to properly execute comparison queries. For example, if I have data:

{
  "resources": [
    {
      "description": "old",
      "updated_at": "2023-04-05"
    },
    {
      "description": "new",
      "updated_at": "2024-03-06",
    }
  ]
}

and execute query

resources[?updated_at > '2024-02-01']

the filtered result should only include the "new" resource. When I run this same example in the playground on the JMESPath site, I see the behavior I expect. When I run this in my Go code, I receive no results back from the search. Clearly, something is wrong in the Go code.

Also see the related issue against the original repo.

@eddycharly
Copy link
Collaborator

> and similar operators only work on numbers

@eddycharly eddycharly linked a pull request Jun 27, 2024 that will close this issue
@eddycharly
Copy link
Collaborator

Will be fixed by #99

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 a pull request may close this issue.

2 participants