-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Correct the condition to use a multi field block loader in text field block loader #126718
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
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
@@ -967,12 +967,11 @@ public boolean isAggregatable() { | |||
} | |||
|
|||
/** | |||
* Returns true if the delegate sub-field can be used for loading and querying (ie. either isIndexed or isStored is true) | |||
* Returns true if the delegate sub-field can be used for loading. | |||
* A delegate by definition must have doc_values or be stored so most of the time it can be used for loading. |
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.
* A delegate by definition must have doc_values or be stored so most of the time it can be used for loading. | |
* A delegate by definition must have doc_values or be stored so most of the time it can be used for querying. |
I think?
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.
There already is canUseSyntheticSourceDelegateForQuerying()
so "loading"
distinguishes the two.
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. Thanks Sasha!
💚 Backport successful
|
Current condition of
syntheticSourceDelegate.isIndexed() || syntheticSourceDelegate.isStored()
seems to be stale.isStored()
is always true forsyntheticSourceDelegate
andisIndexed()
is actually not needed for keyword block loader to work. This PR removes excessive conditions.