Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Aug 19, 2025

I have verified that our DocValues extensions track docId correctly; therefore, I think we can remove the extra docId tracking from BlockDocValuesReader.

@dnhatn dnhatn requested review from martijnvg and nik9000 August 19, 2025 04:25
@dnhatn dnhatn marked this pull request as ready for review August 19, 2025 04:25
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Aug 19, 2025
Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

LGTM, thx Nhat. I was wondering why these checks were necessary given that all doc value implementations need to keep track of current docid in order to work correctly.

@dnhatn
Copy link
Member Author

dnhatn commented Aug 19, 2025

Yes, we may wrap our custom implementation with AssertingNumericDocValues when assertions are enabled.

@dnhatn
Copy link
Member Author

dnhatn commented Aug 20, 2025

Thanks Martijn!

@dnhatn dnhatn merged commit 962427d into elastic:main Aug 20, 2025
34 checks passed
@dnhatn dnhatn deleted the remove-doc-ids branch August 20, 2025 00:02
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.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants