Skip to content

ESQL: incorrectly optimized fork with nullify unmapped_fields #142762

@astefan

Description

@astefan

Description

SET unmapped_fields="nullify";
from employees
| FORK  (where foo != 84) (where true) 
| WHERE _fork == "fork1" 
| DROP _fork 
| eval y = coalesce(bar, baz) 
                "type": "illegal_state_exception",
                "reason": "Found 1 problem\nline 9:3: Plan [Filter[_fork{r}#8044 == fork1[KEYWORD]]] optimized incorrectly due to missing references [_fork{r}#8044]",
                "stack_trace": "org.elasticsearch.ElasticsearchException$1: Found 1 problem\nline 9:3: Plan [Filter[_fork{r}#8044 == fork1[KEYWORD]]] optimized incorrectly due to missing references [_fork{r}#8044]

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions