Skip to content

select statement returns incorrect result for array fields #235

@asfoorial

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions