Skip to content

Commit 04d010f

Browse files
fix StatementParserTests.testNamedFunctionArgumentInMap, testNamedFunctionArgumentWithUnsupportedNamedParameterTypes
1 parent 7400a14 commit 04d010f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ tests:
280280
- class: org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT
281281
method: test {p0=data_stream/140_data_stream_aliases/Create data stream alias with filter}
282282
issue: https://github.com/elastic/elasticsearch/issues/121014
283-
- class: org.elasticsearch.xpack.esql.parser.StatementParserTests
284-
method: testNamedFunctionArgumentInMap
285-
issue: https://github.com/elastic/elasticsearch/issues/121020
286283
- class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityEsqlIT
287284
method: testCrossClusterAsyncQuery
288285
issue: https://github.com/elastic/elasticsearch/issues/121021

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,6 +2468,10 @@ by fn2(f3, {"option1":["string1","string2"],"option2":[1,2,3],"option3":2.0,"opt
24682468
assertEquals(ur, relation("test"));
24692469

24702470
// map entry values provided in named parameter, arrays are not supported by named parameters yet
2471+
assumeTrue(
2472+
"named parameters for identifiers and patterns require snapshot build",
2473+
EsqlCapabilities.Cap.NAMED_PARAMETER_FOR_FIELD_AND_FUNCTION_NAMES_SIMPLIFIED_SYNTAX.isEnabled()
2474+
);
24712475
assertEquals(
24722476
new Filter(
24732477
EMPTY,
@@ -2860,6 +2864,10 @@ public void testNamedFunctionArgumentInInvalidPositions() {
28602864
}
28612865

28622866
public void testNamedFunctionArgumentWithUnsupportedNamedParameterTypes() {
2867+
assumeTrue(
2868+
"named parameters for identifiers and patterns require snapshot build",
2869+
EsqlCapabilities.Cap.NAMED_PARAMETER_FOR_FIELD_AND_FUNCTION_NAMES_SIMPLIFIED_SYNTAX.isEnabled()
2870+
);
28632871
Map<String, String> commands = Map.ofEntries(
28642872
Map.entry("eval x = {}", "29"),
28652873
Map.entry("where {}", "26"),

0 commit comments

Comments
 (0)