tkalkirill commented on code in PR #2254:
URL: https://github.com/apache/ignite-3/pull/2254#discussion_r1280108678


##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/runner/app/ItTablesApiTest.java:
##########
@@ -582,29 +596,36 @@ protected void addColumnIfNotExists(Ignite node, String 
tableName) {
     }
 
     /**
-     * Adds a column.
+     * Tries to create the index.
      *
      * @param node Cluster node.
      * @param tableName Table name.
+     * @param indexName Index name.
+     * @param failIfNotExist Throw an exception if the index does not exist.
      */
-    protected void tryToCreateIndex(Ignite node, String tableName, boolean 
failIfNotExist) {
-        var tmpl  = "CREATE INDEX %s testHI ON %s (valInt, valStr)";
-        var sql = String.format(tmpl, failIfNotExist ? "" : "IF NOT EXISTS", 
tableName);
+    protected static void tryToCreateIndex(Ignite node, String tableName, 
String indexName, boolean failIfNotExist) {

Review Comment:
   Moved tests to **org.apache.ignite.internal.sql.engine.ItIndexDdlTest**



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