Skip to content

Commit 7fef1b0

Browse files
committed
added test
Signed-off-by: Asif Bashar <asif.bashar@gmail.com>
1 parent 2078e82 commit 7fef1b0

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,21 +213,20 @@ public void testTransposeCommand() throws IOException {
213213
}
214214
}
215215

216-
@Test
217-
public void testFieldFormatCommand() throws IOException {
218-
JSONObject result;
219-
try {
220-
executeQuery(
221-
String.format(
222-
"search source=%s | fieldformat double_balance = balance * 2 ", TEST_INDEX_BANK));
223-
} catch (ResponseException e) {
224-
result = new JSONObject(TestUtils.getResponseBody(e.getResponse()));
225-
verifyQuery(result);
226-
}
216+
@Test
217+
public void testFieldFormatCommand() throws IOException {
218+
JSONObject result;
219+
try {
220+
executeQuery(
221+
String.format(
222+
"search source=%s | fieldformat double_balance = balance * 2 ", TEST_INDEX_BANK));
223+
} catch (ResponseException e) {
224+
result = new JSONObject(TestUtils.getResponseBody(e.getResponse()));
225+
verifyQuery(result);
227226
}
227+
}
228228

229-
230-
private void verifyQuery(JSONObject result) throws IOException {
229+
private void verifyQuery(JSONObject result) throws IOException {
231230
if (isCalciteEnabled()) {
232231
assertFalse(result.getJSONArray("datarows").isEmpty());
233232
} else {

0 commit comments

Comments
 (0)