We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1391fa6 commit bc36ee8Copy full SHA for bc36ee8
1 file changed
integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalciteMvCombineCommandIT.java
@@ -232,10 +232,10 @@ private static List<String> toStringListKeepNulls(Object cell) {
232
if (cell == null || cell == JSONObject.NULL) {
233
return Collections.emptyList();
234
}
235
- if (cell instanceof JSONArray arr) {
+ if (cell instanceof JSONArray) {
236
List<String> out = new ArrayList<>();
237
- for (int i = 0; i < arr.length(); i++) {
238
- Object v = arr.get(i);
+ for (int i = 0; i < ((JSONArray) cell).length(); i++) {
+ Object v = ((JSONArray) cell).get(i);
239
out.add(v == JSONObject.NULL ? null : String.valueOf(v));
240
241
return out;
0 commit comments