Skip to content

Commit caabe38

Browse files
committed
added test
Signed-off-by: Asif Bashar <asif.bashar@gmail.com>
1 parent f33269b commit caabe38

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,19 @@ public void testAddColTotalCommand() throws IOException {
202202
}
203203
}
204204

205+
@Test
206+
public void testFieldFormatCommand() throws IOException {
207+
JSONObject result;
208+
try {
209+
executeQuery(
210+
String.format(
211+
"search source=%s | fieldformat double_balance = balance * 2 ", TEST_INDEX_BANK));
212+
} catch (ResponseException e) {
213+
result = new JSONObject(TestUtils.getResponseBody(e.getResponse()));
214+
verifyQuery(result);
215+
}
216+
}
217+
205218
@Test
206219
public void testTransposeCommand() throws IOException {
207220
JSONObject result;

0 commit comments

Comments
 (0)