-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add source fallback support for unsigned long mapped type #89349
Conversation
Pinging @elastic/es-search (Team:Search) |
Hi @jdconrad, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jdconrad! I left a couple of comments.
|
||
import static org.elasticsearch.search.DocValueFormat.MASK_2_63; | ||
|
||
public class SourceValueFetcherSortedUnsignedLongIndexFieldData extends SourceValueFetcherIndexFieldData<SortedNumericDocValues> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have some javadoc here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
@Override | ||
public boolean advanceExact(int doc) throws IOException { | ||
sourceLookup.setSegmentAndDocument(leafReaderContext, doc); | ||
values = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to create a new list every time here or can we reuse an existing one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this to clear as suggested. Good catch.
@romseygeek Thank you the first review. I've updated the PR based on your feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This change adds source fallback support for unsigned long by adding a new
SourceValueFetcherSortedUnsignedLongIndexFieldData
similar to the other numeric types.