Skip to content
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ tests:
- class: org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT
method: test {p0=data_stream/140_data_stream_aliases/Create data stream alias with filter}
issue: https://github.com/elastic/elasticsearch/issues/121014
- class: org.elasticsearch.xpack.esql.parser.StatementParserTests
method: testNamedFunctionArgumentInMap
issue: https://github.com/elastic/elasticsearch/issues/121020
- class: org.elasticsearch.xpack.security.profile.ProfileIntegTests
method: testSuggestProfilesWithName
issue: https://github.com/elastic/elasticsearch/issues/121022
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2468,6 +2468,10 @@ by fn2(f3, {"option1":["string1","string2"],"option2":[1,2,3],"option3":2.0,"opt
assertEquals(ur, relation("test"));

// map entry values provided in named parameter, arrays are not supported by named parameters yet
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.

👍

assertEquals(
new Filter(
EMPTY,
Expand Down Expand Up @@ -2860,6 +2864,10 @@ public void testNamedFunctionArgumentInInvalidPositions() {
}

public void testNamedFunctionArgumentWithUnsupportedNamedParameterTypes() {
assumeTrue(
"named parameters for identifiers and patterns require snapshot build",
EsqlCapabilities.Cap.NAMED_PARAMETER_FOR_FIELD_AND_FUNCTION_NAMES_SIMPLIFIED_SYNTAX.isEnabled()
);
Map<String, String> commands = Map.ofEntries(
Map.entry("eval x = {}", "29"),
Map.entry("where {}", "26"),
Expand Down