Pavel Pereslegin created IGNITE-24578:
-----------------------------------------

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


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)

Reply via email to