AMashenkov commented on code in PR #2446:
URL: https://github.com/apache/ignite-3/pull/2446#discussion_r1294954067


##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItDmlTest.java:
##########
@@ -575,40 +575,45 @@ private DefaultValueArg(String sqlType, String sqlVal, 
Object expectedVal) {
 
     @Test
     public void testInsertMultipleDefaults() {
-        sql("CREATE TABLE integers(i INTEGER PRIMARY KEY, j INTEGER DEFAULT 
2)");
-
-        sql("INSERT INTO integers VALUES (1, DEFAULT)");
-
-        assertQuery("SELECT i, j FROM integers").returns(1, 2).check();
-
-        sql("INSERT INTO integers VALUES (2, 3), (3, DEFAULT), (4, 4), (5, 
DEFAULT)");
-
-        assertQuery("SELECT i, j FROM integers ORDER BY i")
-                .returns(1, 2)
-                .returns(2, 3)
-                .returns(3, 2)
-                .returns(4, 4)
-                .returns(5, 2)
+        sql("CREATE TABLE integers(i INTEGER PRIMARY KEY, col1 INTEGER DEFAULT 
200, col2 INTEGER DEFAULT 300)");
+
+        sql("INSERT INTO integers VALUES (1, DEFAULT, DEFAULT)");
+        sql("INSERT INTO integers(i, col2) VALUES (2, DEFAULT), (3, 4), (4, 
DEFAULT)");
+        sql("INSERT INTO integers (i) VALUES (0)");

Review Comment:
   ```suggestion
           sql("INSERT INTO integers (i) VALUES (0)");
           sql("INSERT INTO integers VALUES (1, DEFAULT, DEFAULT)");
           sql("INSERT INTO integers(i, col2) VALUES (2, DEFAULT), (3, 4), (4, 
DEFAULT)");
   ```



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