-
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
Move geo_shape disk usage test to the spatial module #88555
Conversation
Pinging @elastic/es-search (Team:Search) |
open #88555 @elasticmachine run elasticsearch-ci/part-1 |
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. I left two minor comments. Thanks @iverase.
|
||
@SuppressWarnings("unchecked") | ||
private int extractValue(String[] path, Map<String, Object> objects) { | ||
for (int i = 0; i < path.length - 1; i++) { |
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 delegate these to XContentMapValues#extractValue
instead?
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.
oh yes, thanks!
|
||
value = extractValue(new String[] { "test-index", "fields", "_seq_no", "inverted_index", "total_in_bytes" }, objects); | ||
assertThat(value, equalTo(0)); | ||
value = extractValue(new String[] { "test-index", "fields", "_seq_no", "stored_fields_in_bytes" }, objects); |
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.
Maybe use the path with separators (i.e., "test-index\fields_seq_no\stored_fields_in_bytes") or varags like extractValue
in XContentMapValues?
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.
done
Adds a new SpatialDiskUsageIT test in the spatial module to test fields that the module adds.