Skip to content

EQL: Optimization for string with single wildcard #62585

@rw-access

Description

@rw-access

I saw a few queries flying around with field == "*" syntax. In general, I think we should direct users to direct == null or != null checking, but sometimes we see usage patterns from KQL seep in.

Under the hood field == "*" gets converted to wildcard(field, "*"), which eventually turns into an AST for "like": Like(Source(), Field("field"), "%").

I think somewhere in the optimizer to we should convert this to IsNotNull which should be more performant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions