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


##########
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");
+
+            stmt.executeUpdate(
+                    "CREATE TABLE IF NOT EXISTS Person ("

Review Comment:
   I think we should avoid using IF NOT EXISTS/IF EXISTS if the table already 
exists - the example shouldn't work because the table schema might be different 
and we'll get confusing errors.



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