-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 telemetry for flattened fields. #48972
Add telemetry for flattened fields. #48972
Conversation
Pinging @elastic/es-search (:Search/Mapping) |
9dece87
to
66e75e5
Compare
Currently we just record the number of flattened fields defined in the mappings.
66e75e5
to
0724ca6
Compare
@elasticmachine run elasticsearch-ci/packaging-sample-matrix |
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.
@jtibshirani Thanks, makes sense!
|
||
public FlattenedFeatureSetUsage(StreamInput input) throws IOException { | ||
super(input); | ||
this.fieldCount = input.getVersion().onOrAfter(Version.V_8_0_0) ? input.readInt() : 0; |
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.
I assume for 7.x the version would be changed to V_7_6_0
here and in writeTo
.
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.
Right, that was my plan. Then I'll make an update on master to change to V_7_6_0
as well.
Follow-up to #48972, which was also backported to 7.6.
@@ -0,0 +1,41 @@ | |||
setup: | |||
- skip: | |||
version: " - 7.99.99" |
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.
@jtibshirani Should this one be 7.5.99
now?
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.
Oops, thanks @jpountz, I missed this when updating the serialization version.
It can be lowered to 7.5.99 now that the functionality was backported in #48972.
It can be lowered to 7.5.99 now that the functionality was backported in elastic#48972.
Relates: #4341, elastic/elasticsearch#48972 Co-authored-by: Russ Cam <russ.cam@elastic.co>
Relates: #4341, elastic/elasticsearch#48972 (cherry picked from commit 31ecd9c)
Currently we just record the number of flattened fields defined in the mappings.