Skip to content

select statement returns incorrect result for array fields #235

Closed as not planned

Description

@asfoorial

PUT someindex/_doc/doc1
{
"name":"person1",
"roles":["engineer","consultant"]
}

The below returns both engineer and consultant while it is supposed to return only "engineer”.

select distinct roles from someindex where roles like 'eng%'

This bug is also linked to this post https://discuss.opendistrocommunity.dev/t/apply-match-like-query-on-the-result-of-aggregations/7267/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions