alex-plekhanov commented on code in PR #12743:
URL: https://github.com/apache/ignite/pull/12743#discussion_r2825872030


##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/jdbc/JdbcQueryTest.java:
##########
@@ -113,6 +121,21 @@ private void connect(String url) throws Exception {
         stopAllGrids();
     }
 
+    /** Test user defined table through jdbc. */
+    @Test
+    public void testUdt() throws Exception {
+        try (PreparedStatement ps = conn.prepareStatement("SELECT * FROM 
TABLE(\"OWN_SCHEMA\".STR_ARRAY_CONSUME_TABLE(?))")) {
+            ps.setObject(1, List.of("row1", "row2"));
+            ResultSet rs = ps.executeQuery();
+
+            assertTrue(rs.next());
+            assertEquals("row1", rs.getString(1));
+
+            assertTrue(rs.next());
+            assertEquals("row2", rs.getString(1));
+        }

Review Comment:
   `assertFalse(rs.next());`? Up to you.



-- 
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