danepitkin commented on code in PR #39188:
URL: https://github.com/apache/arrow/pull/39188#discussion_r1423213607


##########
java/adapter/jdbc/src/test/java/org/apache/arrow/adapter/jdbc/h2/JdbcToArrowArrayTest.java:
##########
@@ -354,9 +355,9 @@ private void insertRows(
         Float[] floatArray = floatArrays[i];
         String[] strArray = strArrays[i];
 
-        Array intArray = conn.createArrayOf("INT", integerArray);
-        Array realArray = conn.createArrayOf("REAL", floatArray);
-        Array varcharArray = conn.createArrayOf("VARCHAR", strArray);
+        Array intArray = integerArray != null ? conn.createArrayOf("INT", 
integerArray) : null;
+        Array realArray = floatArray != null ? conn.createArrayOf("REAL", 
floatArray) : null;
+        Array varcharArray = strArray != null ? conn.createArrayOf("VARCHAR", 
strArray) : null;

Review Comment:
   `createArrayOf` is now producing `ARRAY[NULL]` instead of just`null`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to