iartiukhov commented on code in PR #7103:
URL: https://github.com/apache/ignite-3/pull/7103#discussion_r2587950276


##########
examples/java/src/main/java/org/apache/ignite/example/table/MapperExample.java:
##########
@@ -50,10 +77,21 @@ public static void main(String[] args) throws Exception {
                     .table("person")
                     .recordView(mapper);
 
-
             Person myPerson = new Person(2, "2", "John Doe", 40, "Apache");
 
             view.upsert(null, myPerson);
+        } finally {
+
+            System.out.println("Dropping the table...");
+        }
+        try (
+                Connection conn = 
getConnection("jdbc:ignite:thin://127.0.0.1:10800/");
+                Statement stmt = conn.createStatement()
+        ) {
+
+            stmt.executeUpdate(
+                    "CREATE TABLE IF NOT EXISTS Person (id int primary key,  
city varchar,  name varchar,  age int,  company varchar, city_id int);"

Review Comment:
   Do you mean to execute `DROP TABLE  Person`?



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