Skip to content

Simplify EsqlQueryResponse #129031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

idegtiarenko
Copy link
Contributor

This change tries to simplify EsqlQueryResponse:

  • there are multiple ways to add a conditional json section to response rendering. Here I introduce generic conditionalChunkedXContent and migrate all usages to it.
  • Profile simply wraps List<DriverProfile>. Here I am converting it to record.

@idegtiarenko idegtiarenko added >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.1.0 labels Jun 6, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

public Profile(List<DriverProfile> drivers) {
this.drivers = drivers;
}
public record Profile(List<DriverProfile> drivers) implements Writeable {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if we even need that? May be it is worth in-lining List instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >refactoring Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants