Skip to content

Commit 4baa02d

Browse files
committed
Fixed string formatting in MatchPhrasePrefixIT
Signed-off-by: Mitchell Gale <[email protected]>
1 parent 3fa528f commit 4baa02d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integ-test/src/test/java/org/opensearch/sql/ppl/MatchPhrasePrefixIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void slop_is_2() throws IOException {
9898
// When slop is 2, the terms are matched exactly in the order specified.
9999
// 'open' is used to match prefix of the next term.
100100
String query =
101-
"source = %s" + "| where match_phrase_prefix(Tags, 'gas ta', slop=2) " + "| fields Tags";
101+
"source = %s | where match_phrase_prefix(Tags, 'gas ta', slop=2) | fields Tags";
102102
JSONObject result = executeQuery(String.format(query, TEST_INDEX_BEER));
103103
verifyDataRows(result, rows("taste gas"));
104104
}
@@ -107,7 +107,7 @@ public void slop_is_2() throws IOException {
107107
public void slop_is_3() throws IOException {
108108
// When slop is 3, results will include phrases where the query terms are transposed.
109109
String query =
110-
"source = %s" + "| where match_phrase_prefix(Tags, 'gas ta', slop=3)" + "| fields Tags";
110+
"source = %s | where match_phrase_prefix(Tags, 'gas ta', slop=3) | fields Tags";
111111
JSONObject result = executeQuery(String.format(query, TEST_INDEX_BEER));
112112
verifyDataRows(result, rows("taste draught gas"), rows("taste gas"));
113113
}

0 commit comments

Comments
 (0)