From dfe5d3a87d99ac7f088ebd079602e876723d643a Mon Sep 17 00:00:00 2001 From: Kenrick Yap Date: Thu, 30 Jan 2025 14:15:23 -0500 Subject: [PATCH] fix build error Signed-off-by: Kenrick Yap --- .../opensearch/sql/expression/json/JsonFunctionsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/test/java/org/opensearch/sql/expression/json/JsonFunctionsTest.java b/core/src/test/java/org/opensearch/sql/expression/json/JsonFunctionsTest.java index ba7d03ff16..1f37e1f0db 100644 --- a/core/src/test/java/org/opensearch/sql/expression/json/JsonFunctionsTest.java +++ b/core/src/test/java/org/opensearch/sql/expression/json/JsonFunctionsTest.java @@ -219,9 +219,9 @@ void json_extract_search_arrays() { new ExprIntegerValue(1), new ExprIntegerValue(2), new ExprIntegerValue(3)))); // extract specific index from JSON list - for (int i = 0; i < expectedExprValue.size(); i++) { + for (int i = 0; i < expectedExprValues.size(); i++) { String path = String.format("$.a[%d]", i); - execute_extract_json(expectedExprValue.get(i), jsonArray, path); + execute_extract_json(expectedExprValues.get(i), jsonArray, path); } // extract nested object @@ -230,7 +230,7 @@ void json_extract_search_arrays() { execute_extract_json(nestedExpected, jsonArray, "$.a[5].c"); // extract * from JSON list - ExprValue starExpected = new ExprCollectionValue(expectedExprValue); + ExprValue starExpected = new ExprCollectionValue(expectedExprValues); execute_extract_json(starExpected, jsonArray, "$.a[*]"); }