xtern commented on code in PR #7122:
URL: https://github.com/apache/ignite-3/pull/7122#discussion_r2598941862


##########
examples/java/src/main/java/org/apache/ignite/example/table/MapperExample.java:
##########
@@ -37,6 +41,29 @@ public Integer toColumnType(String cityId) {
     }
 
     public static void main(String[] args) throws Exception {
+
+        try (
+                Connection conn = 
getConnection("jdbc:ignite:thin://127.0.0.1:10800/");
+                Statement stmt = conn.createStatement()
+        ) {
+
+            stmt.executeUpdate("DROP TABLE IF EXISTS Person");

Review Comment:
   I think this is a bad practice, an example must not delete tables that it 
did not create.



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