Skip to content

Issue with filtering by comparison #96

@dpopp07

Description

@dpopp07

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions