[ https://issues.apache.org/jira/browse/IGNITE-24578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Mashenkov updated IGNITE-24578: -------------------------------------- Fix Version/s: 3.1 > Sql. Add cancellation token to executeBatch* API methods > -------------------------------------------------------- > > Key: IGNITE-24578 > URL: https://issues.apache.org/jira/browse/IGNITE-24578 > Project: Ignite > Issue Type: Improvement > Components: sql > Affects Versions: 3.0 > Reporter: Pavel Pereslegin > Assignee: Andrey Mashenkov > Priority: Major > Labels: ignite-3 > Fix For: 3.1 > > > There is currently no way to pass the {{cancellationToken}} parameter to > executeBatch* public methods. > {code:Java} > /** > * Executes a batched SQL query. Only DML queries are supported. > */ > long[] executeBatch(@Nullable Transaction transaction, String dmlQuery, > BatchedArguments batch); > /** > * Executes a batched SQL statement. Only DML queries are supported. > */ > long[] executeBatch(@Nullable Transaction transaction, Statement > dmlStatement, BatchedArguments batch); > /** > * Executes a batched SQL query asynchronously. > */ > CompletableFuture<long[]> executeBatchAsync(@Nullable Transaction > transaction, String query, BatchedArguments batch); > /** > * Executes a batched SQL statement asynchronously. > */ > CompletableFuture<long[]> executeBatchAsync(@Nullable Transaction > transaction, Statement statement, BatchedArguments batch); > {code} > We need to add "executeBatch*" methods that accept a cancellation token. -- This message was sent by Atlassian Jira (v8.20.10#820010)