Skip to content

Commit d43d52e

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 2e0c9d6 commit d43d52e

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/VerifierTests.java

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,12 +1369,18 @@ public void testKqlFunctionsNotAllowedAfterCommands() throws Exception {
13691369
}
13701370

13711371
public void testQueryStringFunctionOnlyAllowedInWhere() throws Exception {
1372-
assertEquals("1:9: [QSTR] function is only supported in WHERE and STATS commands, or in EVAL within score(.) function", error("row a = qstr(\"Anna\")"));
1372+
assertEquals(
1373+
"1:9: [QSTR] function is only supported in WHERE and STATS commands, or in EVAL within score(.) function",
1374+
error("row a = qstr(\"Anna\")")
1375+
);
13731376
checkFullTextFunctionsOnlyAllowedInWhere("QSTR", "qstr(\"Anna\")", "function");
13741377
}
13751378

13761379
public void testKqlFunctionOnlyAllowedInWhere() throws Exception {
1377-
assertEquals("1:9: [KQL] function is only supported in WHERE and STATS commands, or in EVAL within score(.) function", error("row a = kql(\"Anna\")"));
1380+
assertEquals(
1381+
"1:9: [KQL] function is only supported in WHERE and STATS commands, or in EVAL within score(.) function",
1382+
error("row a = kql(\"Anna\")")
1383+
);
13781384
checkFullTextFunctionsOnlyAllowedInWhere("KQL", "kql(\"Anna\")", "function");
13791385
}
13801386

@@ -1394,11 +1400,19 @@ public void testMatchOperatornOnlyAllowedInWhere() throws Exception {
13941400
private void checkFullTextFunctionsOnlyAllowedInWhere(String functionName, String functionInvocation, String functionType)
13951401
throws Exception {
13961402
assertEquals(
1397-
"1:22: [" + functionName + "] " + functionType + " is only supported in WHERE and STATS commands, or in EVAL within score(.) function",
1403+
"1:22: ["
1404+
+ functionName
1405+
+ "] "
1406+
+ functionType
1407+
+ " is only supported in WHERE and STATS commands, or in EVAL within score(.) function",
13981408
error("from test | eval y = " + functionInvocation)
13991409
);
14001410
assertEquals(
1401-
"1:18: [" + functionName + "] " + functionType + " is only supported in WHERE and STATS commands, or in EVAL within score(.) function",
1411+
"1:18: ["
1412+
+ functionName
1413+
+ "] "
1414+
+ functionType
1415+
+ " is only supported in WHERE and STATS commands, or in EVAL within score(.) function",
14021416
error("from test | sort " + functionInvocation + " asc")
14031417
);
14041418
assertEquals(

0 commit comments

Comments
 (0)