valepakh commented on code in PR #7738:
URL: https://github.com/apache/ignite-3/pull/7738#discussion_r2917671514


##########
examples/java/src/main/java/org/apache/ignite/example/table/MapperExample.java:
##########
@@ -43,20 +47,25 @@ public static void main(String[] args) throws Exception {
                 .build()
         ) {
             try {
-                client.sql().executeScript(
-                        "CREATE TABLE Person ("
-                                + "id int primary key, "
-                                + "city varchar, "
-                                + "name varchar, "
-                                + "age int, "
-                                + "company varchar, "
-                                + "city_id int)"
-                );
+                try (
+                        Connection conn = 
getConnection("jdbc:ignite:thin://127.0.0.1:10800/");

Review Comment:
   Why is it an anti-pattern?



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