Skip to content

Commit 9fb8006

Browse files
authored
Merge branch 'main' into esql-inference-ccs-v2
2 parents 562283c + 15b0340 commit 9fb8006

File tree

26 files changed

+577
-88
lines changed

26 files changed

+577
-88
lines changed

docs/changelog/138047.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 138047
2+
summary: Add configurable `max_batch_size` for `GoogleVertexAI` embedding service
3+
settings
4+
area: Machine Learning
5+
type: bug
6+
issues: []

docs/reference/query-languages/esql/_snippets/lists/time-series-aggregation-functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* [`AVG_OVER_TIME`](../../functions-operators/time-series-aggregation-functions.md#esql-avg_over_time) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
33
* [`COUNT_OVER_TIME`](../../functions-operators/time-series-aggregation-functions.md#esql-count_over_time) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
44
* [`COUNT_DISTINCT_OVER_TIME`](../../functions-operators/time-series-aggregation-functions.md#esql-count_distinct_over_time) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
5-
* [`DELTA`](../../functions-operators/time-series-aggregation-functions.md#esql-rate) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
5+
* [`DELTA`](../../functions-operators/time-series-aggregation-functions.md#esql-delta) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
66
* [`FIRST_OVER_TIME`](../../functions-operators/time-series-aggregation-functions.md#esql-first_over_time) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
7-
* [`IDELTA`](../../functions-operators/time-series-aggregation-functions.md#esql-rate) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
8-
* [`INCREASE`](../../functions-operators/time-series-aggregation-functions.md#esql-rate) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
9-
* [`IRATE`](../../functions-operators/time-series-aggregation-functions.md#esql-rate) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
7+
* [`IDELTA`](../../functions-operators/time-series-aggregation-functions.md#esql-idelta) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
8+
* [`INCREASE`](../../functions-operators/time-series-aggregation-functions.md#esql-increase) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
9+
* [`IRATE`](../../functions-operators/time-series-aggregation-functions.md#esql-irate) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
1010
* [`LAST_OVER_TIME`](../../functions-operators/time-series-aggregation-functions.md#esql-last_over_time) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
1111
* [`MAX_OVER_TIME`](../../functions-operators/time-series-aggregation-functions.md#esql-max_over_time) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`
1212
* [`MIN_OVER_TIME`](../../functions-operators/time-series-aggregation-functions.md#esql-min_over_time) {applies_to}`stack: preview 9.2` {applies_to}`serverless: preview`

muted-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ tests:
466466
- class: org.elasticsearch.xpack.downsample.DownsampleIT
467467
method: testAggregateMethod
468468
issue: https://github.com/elastic/elasticsearch/issues/139382
469+
- class: org.elasticsearch.xpack.security.authc.saml.SamlRedirectTests
470+
method: testRedirectUrlWithRelayStateAndSigning
471+
issue: https://github.com/elastic/elasticsearch/issues/139389
469472

470473
# Examples:
471474
#

server/src/main/java/org/elasticsearch/index/mapper/blockloader/docvalues/BytesRefsFromBinaryBlockLoader.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717

1818
import java.io.IOException;
1919

20+
/**
21+
* This block loader should be used for fields that are directly encoded as binary values but are always single valued, such as the
22+
* histogram fields. See also {@link BytesRefsFromCustomBinaryBlockLoader} for multivalued binary fields, and
23+
* {@link BytesRefsFromOrdsBlockLoader} for ordinals-based binary values
24+
*/
2025
public class BytesRefsFromBinaryBlockLoader extends BlockDocValuesReader.DocValuesBlockLoader {
2126

2227
private final String fieldName;

server/src/main/java/org/elasticsearch/index/mapper/blockloader/docvalues/BytesRefsFromCustomBinaryBlockLoader.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
import java.io.IOException;
2020

21+
/**
22+
* This block loader should be used for "wildcard-style" binary values, which is to say fields we have encoded into a binary
23+
* format that supports multivalued via an encoding on our side. See also {@link BytesRefsFromOrdsBlockLoader} for ordinals
24+
* based multivalue aware binary fields, and {@link BytesRefsFromBinaryBlockLoader} for single-valued binary fields.
25+
*/
2126
public class BytesRefsFromCustomBinaryBlockLoader extends BlockDocValuesReader.DocValuesBlockLoader {
2227
private final String fieldName;
2328

server/src/main/java/org/elasticsearch/index/mapper/blockloader/docvalues/BytesRefsFromOrdsBlockLoader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
import java.io.IOException;
1818

1919
/**
20-
* Loads {@code keyword} style fields that are stored as a lookup table and ordinals.
20+
* Loads {@code keyword} style fields that are stored as a lookup table and ordinals. See also {@link BytesRefsFromCustomBinaryBlockLoader}
21+
* for {@code wildcard} style (i.e. non-ordinal encoded multivalued) and {@link BytesRefsFromBinaryBlockLoader} for {@code histogram}
22+
* style (i.e. non-ordinal single valued).
2123
*/
2224
public class BytesRefsFromOrdsBlockLoader extends AbstractBytesRefsFromOrdsBlockLoader {
2325
public BytesRefsFromOrdsBlockLoader(String fieldName) {

server/src/main/java/org/elasticsearch/inference/ServiceSettings.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper;
1515
import org.elasticsearch.xcontent.ToXContentObject;
1616

17+
import java.util.Map;
18+
1719
public interface ServiceSettings extends ToXContentObject, VersionedNamedWriteable, FilteredXContent {
1820

1921
/**
@@ -61,4 +63,8 @@ default DenseVectorFieldMapper.ElementType elementType() {
6163
*/
6264
@Nullable
6365
String modelId();
66+
67+
default ServiceSettings updateServiceSettings(Map<String, Object> serviceSettings) {
68+
return this;
69+
}
6470
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9241000
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
esql_exponential_histogram_supported_version,9240000
1+
google_vertex_ai_configurable_max_batch_size,9241000

test/framework/src/main/java/org/elasticsearch/index/mapper/BlockLoaderTestCase.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ public DataSourceResponse.ObjectMappingParametersGenerator handle(
229229
.build();
230230
}
231231

232+
/**
233+
* For a given mapping and input value, compute the value that will be in the block. Values are generated from the
234+
* {@link DocumentGenerator}, and the behavior can be controled by writing a custom {@link DataSourceHandler}.
235+
*
236+
* @param fieldMapping Generated parameters for this field mapping
237+
* @param value Generated input value to convert
238+
* @param testContext Context information for the current test run
239+
* @return The value that will be added to the block
240+
*/
232241
protected abstract Object expected(Map<String, Object> fieldMapping, Object value, TestContext testContext);
233242

234243
protected static Object maybeFoldList(List<?> list) {

0 commit comments

Comments
 (0)