Skip to content

[8.13] ESQL: Introduce language versioning to REST API (#106824)#107301

Merged
alex-spies merged 1 commit intoelastic:8.13from
alex-spies:backport/8.13/pr-106824
Apr 10, 2024
Merged

[8.13] ESQL: Introduce language versioning to REST API (#106824)#107301
alex-spies merged 1 commit intoelastic:8.13from
alex-spies:backport/8.13/pr-106824

Conversation

@alex-spies
Copy link
Copy Markdown
Contributor

@alex-spies alex-spies commented Apr 10, 2024

This will backport the following commits from main to 8.13:

This will allow sending the ES|QL version in REST requests but will do nothing with the version parameter; sending version is also not enforced.

This is required to allow sending version in clusters of mixed ES versions (i.e. 8.14 and 8.13); without this, our bwc tests fail when we make our integration tests send the version (like #107268 for example).

For the _query endpoint, add a parameter for the ESQL language version to the JSON payload.
For now, it is optional and is only validated with no further action.

(cherry picked from commit 147f5a0)

# Conflicts:
#	x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/esql/action/EsqlQueryRequest.java
#	x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/esql/action/EsqlQueryRequestBuilder.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlQueryRequest.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlQueryRequestBuilder.java
#	x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/RequestXContent.java
@alex-spies alex-spies merged commit c1b7823 into elastic:8.13 Apr 10, 2024
@alex-spies alex-spies deleted the backport/8.13/pr-106824 branch April 10, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants