Skip to content

Conversation

@alex-spies
Copy link
Contributor

@alex-spies alex-spies commented Dec 2, 2025

This will backport the following commits from main to 9.2:

…rsion (elastic#137431)

When deciding which types are supported, we did not use the correct minimum transport version during the enrich resolution in case of CCS and ROW queries. What's more, the EnrichPolicyResolver did not account for the fact that the node requesting resolution might be on a version that doesn't support the types in the resolved mapping, which led to serialization bugs surfacing when trying to enable the DATE_RANGE type.

- Initialize the minimum transport version with the minimum version from the cluster state before any resolution steps. That makes ROW queries correct.
- Send the determined minimum transport version along the enrich resolution request so that remote clusters don't send un-deserializable data types back.
- Add the determined minimum transport version to the profile.
- Add a bunch of tests.

(cherry picked from commit 4a14f83)

# Conflicts:
#	server/src/main/resources/transport/upper_bounds/9.3.csv
#	x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/PushExpressionToLoadIT.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/enrich/EnrichPolicyResolver.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plugin/TransportEsqlQueryAction.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/EsqlSession.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/session/IndexResolver.java
@alex-spies alex-spies added >bug :Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) test-full-bwc Trigger full BWC version matrix tests test-release Trigger CI checks against release build labels Dec 2, 2025
alex-spies and others added 5 commits December 2, 2025 15:10
Make pre-initialization of minimumTransportVersion consistent with main.
In 9.2, this was in the forked field caps response, not the original
field caps response.
@alex-spies
Copy link
Contributor Author

Unrelated failing release test:

That's the only thing keeping CI from being green. This is safe to be merged.

@alex-spies alex-spies merged commit a189b88 into elastic:9.2 Dec 3, 2025
28 of 31 checks passed
@alex-spies alex-spies deleted the backport/9.2/pr-137431 branch December 3, 2025 08:43
@alex-spies
Copy link
Contributor Author

Note: this doesn't bump the 9.2 upper bound because it was already bumped with the initial 9.2.3 transport version, which is actually one version after the new transport version that this PR adds to 9.2, due to the backport racing the automated transport version bump after the 9.2.2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug test-full-bwc Trigger full BWC version matrix tests test-release Trigger CI checks against release build v9.2.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants