Skip to content

ESQL: No rows with JOIN/ENRICH/SAMPLE + EVAL + KEEP #120272

Open
@ivancea

Description

@ivancea

Weird interaction resulting in no rows:

Correct:

FROM languages
| DROP language_code
| EVAL language_code = 3
| LOOKUP JOIN languages_lookup ON language_code

# Results:
 language_code | language_name 
---------------+---------------
3              |Spanish
3              |Spanish
3              |Spanish
3              |Spanish

Wrong results:

FROM languages
| DROP language_code
| EVAL language_code = 3
| LOOKUP JOIN languages_lookup ON language_code
| KEEP language_code

# Results:
 language_code 
---------------

You can remove the first DROP if the original index doesn't have the JOIN key column

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions