elasticsearch
elasticsearch copied to clipboard
Fix BlockHash DirectEncoder
The DirectEncoder currently returns the incorrect value for the positionCount()
method, which should be the number of positions ready in the current batch. We need to keep track of whether a position is loaded via encodeNextBatch()
and consumed via the read()
method. However, we can always return 1 for positionCount()
, indicating that one position is already loaded. Our tests failed to catch this because mv_ordering wasn't enabled when generating test blocks, effectively disabling the DirectEncoders.
Closes #108268
Hi @dnhatn, I've created a changelog YAML for you.
Pinging @elastic/es-analytical-engine (Team:Analytics)
Hi @dnhatn, I've updated the changelog YAML for you.
Thanks Nik!