Skip to content

Commit 51cae8c

Browse files
committed
styles
1 parent ad9985b commit 51cae8c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/exec/DdlBatchingTest.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,13 @@
2929
import static org.junit.jupiter.api.Assertions.assertTrue;
3030

3131
import java.lang.reflect.Proxy;
32-
import java.util.Arrays;
3332
import java.util.concurrent.CompletableFuture;
3433
import java.util.concurrent.atomic.AtomicInteger;
3534
import java.util.stream.Collectors;
3635
import org.apache.ignite.internal.catalog.Catalog;
3736
import org.apache.ignite.internal.catalog.CatalogManager;
3837
import org.apache.ignite.internal.catalog.CatalogService;
3938
import org.apache.ignite.internal.catalog.CatalogValidationException;
40-
import org.apache.ignite.internal.lang.IgniteStringFormatter;
4139
import org.apache.ignite.internal.sql.engine.AsyncSqlCursor;
4240
import org.apache.ignite.internal.sql.engine.InternalSqlRow;
4341
import org.apache.ignite.internal.sql.engine.exec.fsm.QueryInfo;
@@ -126,8 +124,8 @@ void schemaAndTableCreatedInTheSameBatch() {
126124
void fewDdlAreBatched() {
127125
AsyncSqlCursor<InternalSqlRow> cursor = gatewayNode.executeQuery(
128126
"CREATE TABLE t1 (id INT PRIMARY KEY, val_1 INT, val_2 INT);"
129-
+ "CREATE INDEX t1_ind_1 ON t1 (val_1);"
130-
+ "CREATE INDEX t1_ind_2 ON t1 (val_2);"
127+
+ "CREATE INDEX t1_ind_1 ON t1 (val_1);"
128+
+ "CREATE INDEX t1_ind_2 ON t1 (val_2);"
131129
);
132130

133131
// CREATE TABLE t1 (id INT PRIMARY KEY, val_1 INT, val_2 INT)
@@ -490,10 +488,12 @@ void preparationTimeErrorAsFirstItemOfBatch() {
490488
}
491489

492490
/**
493-
* This case makes sure that exception thrown is matched the order of execution, and not the order exceptions appear.
491+
* This case makes sure that exception thrown is matched the order of execution, and not the order
492+
* exceptions appear.
494493
*
495494
* <p>To be more specific, first seen exception relates to absent PK definition in 3rd statement, but
496-
* during execution the exception that should be thrown is the one denoting that table with given name already exists (2nd statement).
495+
* during execution the exception that should be thrown is the one denoting that table with given name
496+
* already exists (2nd statement).
497497
*/
498498
@Test
499499
void mixedErrorsInBatch() {
@@ -603,11 +603,10 @@ private void assertIndexNotExists(String name) {
603603
private CatalogManager catalogManagerDecorator(CatalogManager original) {
604604
return (CatalogManager) Proxy.newProxyInstance(
605605
QueryTimeoutTest.class.getClassLoader(),
606-
new Class<?>[]{CatalogManager.class},
606+
new Class<?>[] {CatalogManager.class},
607607
(proxy, method, args) -> {
608608
if ("execute".equals(method.getName())) {
609-
int i = executeCallCounter.incrementAndGet();
610-
System.out.println(IgniteStringFormatter.format("CALL: try={}, args={}", i, Arrays.toString(args)));
609+
executeCallCounter.incrementAndGet();
611610
}
612611

613612
return method.invoke(original, args);

0 commit comments

Comments
 (0)