Skip to content

Conversation

@fang-xing-esql
Copy link
Member

@fang-xing-esql fang-xing-esql commented Jan 28, 2025

Resolves: #121020
Resolves: #121047

These two tests - testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes in StatementParserTests reference some features that are still under snapshot, add the check to EsqlCapabilities in them.

…ctionArgumentWithUnsupportedNamedParameterTypes
@fang-xing-esql fang-xing-esql added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged test-release Trigger CI checks against release build :Analytics/ES|QL AKA ESQL v9.0.0 v8.18.0 labels Jan 28, 2025
assumeTrue(
"named parameters for identifiers and patterns require snapshot build",
EsqlCapabilities.Cap.NAMED_PARAMETER_FOR_FIELD_AND_FUNCTION_NAMES_SIMPLIFIED_SYNTAX.isEnabled()
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing it this way will cause the whole test to stop. Maybe we're better off wrapping the assertion in an if

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests that run only under snapshot are extracted to a separate test.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

assumeTrue(
"named parameters for identifiers and patterns require snapshot build",
EsqlCapabilities.Cap.NAMED_PARAMETER_FOR_FIELD_AND_FUNCTION_NAMES_SIMPLIFIED_SYNTAX.isEnabled()
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fang-xing-esql
Copy link
Member Author

@elasticmachine update branch

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jan 30, 2025
@fang-xing-esql
Copy link
Member Author

The reported failures below are unrelated, I'll get this merged to unblock #121306 and #121297

elasticsearch-ci/checkPart3 / release-tests
elasticsearch-ci/8.19.0 / bwc-snapshots
elasticsearch-ci/9.0.0 / bwc-snapshots

@fang-xing-esql fang-xing-esql merged commit b381a1d into elastic:main Jan 30, 2025
15 of 21 checks passed
fang-xing-esql added a commit to fang-xing-esql/Elasticsearch that referenced this pull request Jan 30, 2025
…entParserTests (elastic#121075)

* fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes

* separate snapshot test from release test

---------

Co-authored-by: Elastic Machine <[email protected]>
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.0
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 121075

fang-xing-esql added a commit to fang-xing-esql/Elasticsearch that referenced this pull request Jan 30, 2025
…entParserTests (elastic#121075)

* fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes

* separate snapshot test from release test

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit b381a1d)

# Conflicts:
#	muted-tests.yml
@fang-xing-esql
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.x
8.18

Questions ?

Please refer to the Backport tool documentation

saikatsarkar056 pushed a commit to saikatsarkar056/elasticsearch that referenced this pull request Jan 30, 2025
…entParserTests (elastic#121075)

* fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes

* separate snapshot test from release test

---------

Co-authored-by: Elastic Machine <[email protected]>
elasticsearchmachine pushed a commit that referenced this pull request Jan 30, 2025
…entParserTests (#121075) (#121330)

* fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes

* separate snapshot test from release test

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit b381a1d)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Jan 30, 2025
…entParserTests (#121075) (#121331)

* fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes

* separate snapshot test from release test

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit b381a1d)

# Conflicts:
#	muted-tests.yml
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Jan 30, 2025
…entParserTests (elastic#121075)

* fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes

* separate snapshot test from release test

---------

Co-authored-by: Elastic Machine <[email protected]>
elasticsearchmachine pushed a commit that referenced this pull request Jan 31, 2025
…entParserTests (#121075) (#121328)

* fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes

* separate snapshot test from release test

---------

Co-authored-by: Elastic Machine <[email protected]>
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-backport Automatically create backport pull requests when merged Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests test-release Trigger CI checks against release build v8.18.0 v8.18.1 v8.19.0 v9.0.0 v9.0.1 v9.1.0

Projects

None yet

4 participants