Skip to content

Commit bc36ee8

Browse files
committed
Fix compile error
Signed-off-by: Lantao Jin <ltjin@amazon.com>
1 parent 1391fa6 commit bc36ee8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalciteMvCombineCommandIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ private static List<String> toStringListKeepNulls(Object cell) {
232232
if (cell == null || cell == JSONObject.NULL) {
233233
return Collections.emptyList();
234234
}
235-
if (cell instanceof JSONArray arr) {
235+
if (cell instanceof JSONArray) {
236236
List<String> out = new ArrayList<>();
237-
for (int i = 0; i < arr.length(); i++) {
238-
Object v = arr.get(i);
237+
for (int i = 0; i < ((JSONArray) cell).length(); i++) {
238+
Object v = ((JSONArray) cell).get(i);
239239
out.add(v == JSONObject.NULL ? null : String.valueOf(v));
240240
}
241241
return out;

0 commit comments

Comments
 (0)