Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Sep 16, 2024
1 parent 0c3e2f4 commit 8a840ec
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,10 @@ public void testQueryStringFunctionsNotAllowedAfterCommands() throws Exception {
);
assertEquals("1:27: [QSTR] function cannot be used after KEEP", error("from test | keep emp_no | where qstr(\"Anna\")"));
assertEquals("1:24: [QSTR] function cannot be used after LIMIT", error("from test | limit 10 | where qstr(\"Anna\")"));
assertEquals("1:35: [QSTR] function cannot be used after MV_EXPAND", error("from test | mv_expand last_name | where qstr(\"Anna\")"));
assertEquals(
"1:35: [QSTR] function cannot be used after MV_EXPAND",
error("from test | mv_expand last_name | where qstr(\"Anna\")")
);
assertEquals(
"1:45: [QSTR] function cannot be used after RENAME",
error("from test | rename last_name as full_name | where qstr(\"Anna\")")
Expand All @@ -1125,7 +1128,10 @@ public void testQueryStringFunctionsNotAllowedAfterCommands() throws Exception {
);

// Some combination of processing commands
assertEquals("1:38: [QSTR] function cannot be used after LIMIT", error("from test | keep emp_no | limit 10 | where qstr(\"Anna\")"));
assertEquals(
"1:38: [QSTR] function cannot be used after LIMIT",
error("from test | keep emp_no | limit 10 | where qstr(\"Anna\")")
);
assertEquals(
"1:46: [QSTR] function cannot be used after MV_EXPAND",
error("from test | limit 10 | mv_expand last_name | where qstr(\"Anna\")")
Expand All @@ -1150,7 +1156,10 @@ public void testQueryStringFunctionsOnlyAllowedInWhere() throws Exception {
assertEquals("1:22: [QSTR] function is only supported in WHERE commands", error("from test | eval y = qstr(\"Anna\")"));
assertEquals("1:18: [QSTR] function is only supported in WHERE commands", error("from test | sort qstr(\"Connection\") asc"));
assertEquals("1:5: [QSTR] function is only supported in WHERE commands", error("row qstr(\"Connection\")"));
assertEquals("1:23: [QSTR] function is only supported in WHERE commands", error("from test | STATS c = qstr(\"foo\") BY languages"));
assertEquals(
"1:23: [QSTR] function is only supported in WHERE commands",
error("from test | STATS c = qstr(\"foo\") BY languages")
);
}

public void testQueryStringFunctionArgNotNullOrConstant() throws Exception {
Expand Down

0 comments on commit 8a840ec

Please sign in to comment.