File tree 1 file changed +3
-3
lines changed
core/src/test/java/org/opensearch/sql/expression/json
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -219,9 +219,9 @@ void json_extract_search_arrays() {
219
219
new ExprIntegerValue (1 ), new ExprIntegerValue (2 ), new ExprIntegerValue (3 ))));
220
220
221
221
// extract specific index from JSON list
222
- for (int i = 0 ; i < expectedExprValue .size (); i ++) {
222
+ for (int i = 0 ; i < expectedExprValues .size (); i ++) {
223
223
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 );
225
225
}
226
226
227
227
// extract nested object
@@ -230,7 +230,7 @@ void json_extract_search_arrays() {
230
230
execute_extract_json (nestedExpected , jsonArray , "$.a[5].c" );
231
231
232
232
// extract * from JSON list
233
- ExprValue starExpected = new ExprCollectionValue (expectedExprValue );
233
+ ExprValue starExpected = new ExprCollectionValue (expectedExprValues );
234
234
execute_extract_json (starExpected , jsonArray , "$.a[*]" );
235
235
}
236
236
You can’t perform that action at this time.
0 commit comments