Skip to content

usage of WHERE is ambiguous #5140

@JLT032

Description

@JLT032

Type of issue

None

What documentation page is affected

https://www.elastic.co/docs/reference/query-languages/esql/commands/where

What happened?

this behaviour is subtly implied but not explicitly documented

queries don't return data consistently

FROM filebeat-* | WHERE service.name IN ("name1","name2") | KEEP field1,field2,field3  | STATS count(field2),VALUES(field1),VALUES(field3) by field2,field3,field1

= variation =

FROM filebeat-* | KEEP field1,field2,field3  | WHERE service.name IN ("name1","name2")  | STATS count(field2),VALUES(field1),VALUES(field3) by field2,field3,field1

returns less data than

FROM filebeat-* | KEEP field1,field2,field3  | STATS count(field2),VALUES(field1),VALUES(field3) by field2,field3,field1| WHERE service.name IN ("name1","name2")

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:DeveloperIssues owned by the Developer Docs Teamcommunitysource:webIssues originating from the elastic.co docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions