Skip to content

ESQL: Skip LOOKUP JOIN when join key is missing from index #125577

@alex-spies

Description

@alex-spies

ReplaceMissingFieldWithNull will check if the indices of a data node even have a given field, and if not, will define a literal NULL in its place to avoid extracting null blocks.

When the join key for a LOOKUP JOIN is missing on the data node, we could optimize away the whole join rather than extracting null blocks and then performing lookups with them.

Or, at least we should check that the current implementation is sufficiently cheap - but I think it's likely not in cases where we fan out to loads of data nodes, many of which just don't have values for the join key; like in FROM * | LOOKUP JOIN lu_idx ON some_rather_rare_field | SORT whatever_field.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions