Skip to content

Conversation

@alex-spies
Copy link
Contributor

Fix #121754

Branched off #125462, but with a different solution.

Requires more local logical plan optimizer tests before this should be merged.

@elasticsearchmachine
Copy link
Collaborator

Hi @alex-spies, I've created a changelog YAML for you.

Don't try to optimize for multiple occurrences of the same, missing
field attr in a projection. That can't occur, anyway, as it would breach
our invariants.
}
} else if (plan instanceof Project) {
// Only create null literals for newly encountered missing fields
plan = resolveAlreadyReplacedAttributes(plan, fieldAttrReplacedBy);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is problematic, see #110373

@alex-spies
Copy link
Contributor Author

The present approach could lead to class cast exceptions; fixing this introduces incidental complexity. Closing.

@alex-spies alex-spies closed this Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ES|QL: NullPointerException planning EVAL

3 participants