Skip to content

Commit d1b8d61

Browse files
committed
Merge remote-tracking branch 'upstream/main' into inference_metadata_fields
2 parents bcce2ea + 187935e commit d1b8d61

File tree

27 files changed

+879
-408
lines changed

27 files changed

+879
-408
lines changed

docs/reference/esql/functions/description/categorize.asciidoc

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/examples/categorize.asciidoc

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/grouping-functions.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ The <<esql-stats-by>> command supports these grouping functions:
99

1010
// tag::group_list[]
1111
* <<esql-bucket>>
12+
* experimental:[] <<esql-categorize>>
1213
// end::group_list[]
1314

1415
include::layout/bucket.asciidoc[]
16+
include::layout/categorize.asciidoc[]

docs/reference/esql/functions/kibana/definition/categorize.json

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/categorize.md

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/layout/categorize.asciidoc

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/h3/src/main/java/org/elasticsearch/h3/FaceIJK.java

Lines changed: 139 additions & 102 deletions
Large diffs are not rendered by default.

libs/h3/src/main/java/org/elasticsearch/h3/H3.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ public static LatLng h3ToLatLng(String h3Address) {
174174
* Find the cell {@link CellBoundary} coordinates for the cell
175175
*/
176176
public static CellBoundary h3ToGeoBoundary(long h3) {
177-
FaceIJK fijk = H3Index.h3ToFaceIjk(h3);
177+
final FaceIJK fijk = H3Index.h3ToFaceIjk(h3);
178178
if (H3Index.H3_is_pentagon(h3)) {
179-
return fijk.faceIjkPentToCellBoundary(H3Index.H3_get_resolution(h3), 0, Constants.NUM_PENT_VERTS);
179+
return fijk.faceIjkPentToCellBoundary(H3Index.H3_get_resolution(h3));
180180
} else {
181-
return fijk.faceIjkToCellBoundary(H3Index.H3_get_resolution(h3), 0, Constants.NUM_HEX_VERTS);
181+
return fijk.faceIjkToCellBoundary(H3Index.H3_get_resolution(h3));
182182
}
183183
}
184184

muted-tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ tests:
9191
- class: org.elasticsearch.xpack.restart.MLModelDeploymentFullClusterRestartIT
9292
method: testDeploymentSurvivesRestart {cluster=UPGRADED}
9393
issue: https://github.com/elastic/elasticsearch/issues/115528
94-
- class: org.elasticsearch.oldrepos.OldRepositoryAccessIT
95-
method: testOldRepoAccess
96-
issue: https://github.com/elastic/elasticsearch/issues/115631
9794
- class: org.elasticsearch.action.update.UpdateResponseTests
9895
method: testToAndFromXContent
9996
issue: https://github.com/elastic/elasticsearch/issues/115689
@@ -237,6 +234,8 @@ tests:
237234
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
238235
method: test {p0=search.highlight/50_synthetic_source/text multi unified from vectors}
239236
issue: https://github.com/elastic/elasticsearch/issues/117815
237+
- class: org.elasticsearch.xpack.ml.integration.DatafeedJobsRestIT
238+
issue: https://github.com/elastic/elasticsearch/issues/111319
240239

241240
# Examples:
242241
#

server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ public static IndexMetadata readFrom(StreamInput in, @Nullable Function<String,
17851785
builder.primaryTerms(in.readVLongArray());
17861786
int mappingsSize = in.readVInt();
17871787
if (mappingsSize == 1) {
1788-
if (mappingLookup != null && in.getTransportVersion().onOrAfter(Metadata.MAPPINGS_AS_HASH_VERSION)) {
1788+
if (mappingLookup != null) {
17891789
final String mappingHash = in.readString();
17901790
final MappingMetadata metadata = mappingLookup.apply(mappingHash);
17911791
assert metadata != null : "failed to find mapping [" + mappingHash + "] for [" + builder.index + "]";
@@ -1860,7 +1860,7 @@ public void writeTo(StreamOutput out, boolean mappingsAsHash) throws IOException
18601860
out.writeVInt(0);
18611861
} else {
18621862
out.writeVInt(1);
1863-
if (mappingsAsHash && out.getTransportVersion().onOrAfter(Metadata.MAPPINGS_AS_HASH_VERSION)) {
1863+
if (mappingsAsHash) {
18641864
out.writeString(mapping.getSha256());
18651865
} else {
18661866
mapping.writeTo(out);

0 commit comments

Comments
 (0)