Skip to content

Commit dfe5d3a

Browse files
committed
fix build error
Signed-off-by: Kenrick Yap <[email protected]>
1 parent f35f424 commit dfe5d3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/test/java/org/opensearch/sql/expression/json/JsonFunctionsTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ void json_extract_search_arrays() {
219219
new ExprIntegerValue(1), new ExprIntegerValue(2), new ExprIntegerValue(3))));
220220

221221
// extract specific index from JSON list
222-
for (int i = 0; i < expectedExprValue.size(); i++) {
222+
for (int i = 0; i < expectedExprValues.size(); i++) {
223223
String path = String.format("$.a[%d]", i);
224-
execute_extract_json(expectedExprValue.get(i), jsonArray, path);
224+
execute_extract_json(expectedExprValues.get(i), jsonArray, path);
225225
}
226226

227227
// extract nested object
@@ -230,7 +230,7 @@ void json_extract_search_arrays() {
230230
execute_extract_json(nestedExpected, jsonArray, "$.a[5].c");
231231

232232
// extract * from JSON list
233-
ExprValue starExpected = new ExprCollectionValue(expectedExprValue);
233+
ExprValue starExpected = new ExprCollectionValue(expectedExprValues);
234234
execute_extract_json(starExpected, jsonArray, "$.a[*]");
235235
}
236236

0 commit comments

Comments
 (0)