Skip to content

ESQL: Move doc values BlockLoader impls#137063

Merged
nik9000 merged 1 commit intoelastic:mainfrom
nik9000:esql_move_doc_values_loaders
Oct 23, 2025
Merged

ESQL: Move doc values BlockLoader impls#137063
nik9000 merged 1 commit intoelastic:mainfrom
nik9000:esql_move_doc_values_loaders

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Oct 23, 2025

We have a bunch of these as inner classes. Some of them are inner classes of the field types they support - which is fine and good. But a bunch of the shared ones were inner classes of BlockDocValuesReader which made the class like a billion lines long. And it made it harder to find the source code of the shared ones because they weren't in alphabetical order.

This moves these block loaders to top level classes. And lets our IDE put them in alphabetical order for us. Which is nice because we'll be adding a bunch more of them as we move further on #137002.

We have a bunch of these as inner classes. Some of them are inner
classes of the field types they support - which is fine and good. But a
bunch of the shared ones were inner classes of `BlockDocValuesReader`
which made the class like a billion lines long. And it made it harder to
find the source code of the shared ones because they weren't in
alphabetical order.

This moves these block loaders to top level classes. And lets our IDE
put them in alphabetical order for us. Which is nice because we'll be
adding a bunch more of them as we move further on elastic#137002.
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 23, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@nik9000
Copy link
Copy Markdown
Member Author

nik9000 commented Oct 23, 2025

Thanks @dnhatn !

@nik9000 nik9000 merged commit ef86723 into elastic:main Oct 23, 2025
34 checks passed
fzowl pushed a commit to voyage-ai/elasticsearch that referenced this pull request Nov 3, 2025
We have a bunch of these as inner classes. Some of them are inner
classes of the field types they support - which is fine and good. But a
bunch of the shared ones were inner classes of `BlockDocValuesReader`
which made the class like a billion lines long. And it made it harder to
find the source code of the shared ones because they weren't in
alphabetical order.

This moves these block loaders to top level classes. And lets our IDE
put them in alphabetical order for us. Which is nice because we'll be
adding a bunch more of them as we move further on elastic#137002.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants