Skip to content

Commit

Permalink
Merge remote-tracking branch 'es/main' into source_mode_attr_noop
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Jan 24, 2025
2 parents 0d0ec31 + 8fc5a50 commit a52cf3f
Show file tree
Hide file tree
Showing 69 changed files with 2,988 additions and 483 deletions.
7 changes: 7 additions & 0 deletions docs/changelog/120256.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pr: 120256
summary: Improve memory aspects of enrich cache
area: Ingest Node
type: enhancement
issues:
- 96050
- 120021
6 changes: 6 additions & 0 deletions docs/changelog/120645.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 120645
summary: Esql Support date nanos on date diff function
area: ES|QL
type: enhancement
issues:
- 109999
5 changes: 5 additions & 0 deletions docs/changelog/120722.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 120722
summary: Migrate stream to core error parsing
area: Machine Learning
type: enhancement
issues: []
144 changes: 144 additions & 0 deletions docs/reference/esql/functions/kibana/definition/date_diff.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/reference/esql/functions/types/date_diff.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ tests:
issue: https://github.com/elastic/elasticsearch/issues/120668
- class: org.elasticsearch.xpack.security.authc.ldap.ADLdapUserSearchSessionFactoryTests
issue: https://github.com/elastic/elasticsearch/issues/119882
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncEnrichStopIT
method: testEnrichAfterStop
issue: https://github.com/elastic/elasticsearch/issues/120757
- class: org.elasticsearch.xpack.esql.action.CrossClusterAsyncQueryIT
method: testStopQuery
issue: https://github.com/elastic/elasticsearch/issues/120767

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ setup:

- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

- do:
synonyms.get_synonym:
Expand Down Expand Up @@ -67,10 +65,8 @@ setup:

- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

- do:
synonyms.get_synonym:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

---
"Get synonyms set":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

---
"Delete synonyms set":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

- do:
synonyms.put_synonym:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

---
"Update a synonyms rule":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

---
"Get a synonym rule":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

---
"Delete synonym rule":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

# Create an index with synonym_filter that uses that synonyms set
- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ setup:
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms-2
timeout: 2s
index: .synonyms
wait_for_status: green
ignore: 408

# Create my_index1 with synonym_filter that uses synonyms_set1
- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ static TransportVersion def(int id) {
public static final TransportVersion ML_ROLLOVER_LEGACY_INDICES = def(8_830_00_0);
public static final TransportVersion ADD_INCLUDE_FAILURE_INDICES_OPTION = def(8_831_00_0);
public static final TransportVersion ESQL_RESPONSE_PARTIAL = def(8_832_00_0);
public static final TransportVersion RANK_DOC_OPTIONAL_METADATA_FOR_EXPLAIN = def(8_833_00_0);

/*
* STOP! READ THIS FIRST! No, really,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ void executeRequest(
});

final SearchSourceBuilder source = original.source();
final boolean isExplain = source != null && source.explain() != null && source.explain();
if (shouldOpenPIT(source)) {
// disabling shard reordering for request
original.setPreFilterShardSize(Integer.MAX_VALUE);
Expand Down Expand Up @@ -536,7 +537,12 @@ public void onFailure(Exception e) {
} else {
Rewriteable.rewriteAndFetch(
original,
searchService.getRewriteContext(timeProvider::absoluteStartMillis, resolvedIndices, original.pointInTimeBuilder()),
searchService.getRewriteContext(
timeProvider::absoluteStartMillis,
resolvedIndices,
original.pointInTimeBuilder(),
isExplain
),
rewriteListener
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@ public QueryRewriteContext newQueryRewriteContext(
scriptService,
null,
null,
null
null,
false
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public CoordinatorRewriteContext(
null,
null,
null,
null
null,
false
);
this.dateFieldRangeInfo = dateFieldRangeInfo;
this.tier = tier;
Expand Down
Loading

0 comments on commit a52cf3f

Please sign in to comment.