ygerzhedovich commented on code in PR #1948:
URL: https://github.com/apache/ignite-3/pull/1948#discussion_r1171424129
##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/sql/api/ItSqlAsynchronousApiTest.java:
##########
@@ -597,6 +597,32 @@ public void errors() {
await(ars.closeAsync());
assertThrowsWithCause(() -> await(ars.fetchNextPage()),
CursorClosedException.class);
}
+
+ // DDL is non-transactional.
+ {
+ Transaction tx = igniteTx().begin();
+ try {
+ assertThrowsWithCause(() -> await(ses.executeAsync(tx, "CREATE
TABLE TEST2(ID INT PRIMARY KEY, VAL0 INT)")),
+ SqlException.class,
+ "DDL doesn't support transactions."
+ );
+ } finally {
+ tx.rollback();
+ }
+ }
+ {
Review Comment:
it looks as a separate test :)
--
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]