-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Encode field attributes as predicates #48864
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
Comments
Pinging @elastic/es-search (:Search/Mapping) |
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
@not-napoleon This seems to have been mostly dealt with the value source refactoring, does it make sense to have it opened or we can close it now? |
@iverase I didn't actually address either the specific case quoted in this ticket, or the general behavior, when I did the refactor. I just moved where we do it. The code block quoted above is now found in So, I vote to keep this open for now. |
I think I just merged a |
Ah, but that this |
Yeah, we've made a lot of progress getting rid of |
I am interested to pick this Issue, can i start to work on this? |
@GrayFox1 This is a pretty tricky and involved refactoring that touches a lot of the code. I would not suggest this as a starting point for contributing to Elasticsearch. If you're interested in getting some experience contributing to projects, might I suggest taking a look at our good first issue list: https://github.com/elastic/elasticsearch/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22 |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
Currently, the aggregations framework uses
instanceof
operations in many places to figure out what type of values we are getting. For example:(
elasticsearch/server/src/main/java/org/elasticsearch/search/aggregations/support/ValuesSourceConfig.java
Lines 353 to 357 in 4a66cfc
As part of our effort to get away from hard coding type information in the core aggregations framework, we'd like to explore replacing these with predicates on the Field Data classes. For example, the above case could use a
hasOrdinals()
predicate instead of theinstanceof
check.The text was updated successfully, but these errors were encountered: