korlov42 commented on code in PR #5143:
URL: https://github.com/apache/ignite-3/pull/5143#discussion_r1939491725
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/ExecutionServiceImpl.java:
##########
@@ -407,6 +408,30 @@ public CompletableFuture<AsyncDataCursor<InternalSqlRow>>
executePlan(
}
}
+ @Override
+ public CompletableFuture<List<AsyncDataCursor<InternalSqlRow>>>
executeDdlBatch(
+ List<DdlPlan> batch,
+ Consumer<HybridTimestamp> activationTimeListener
+ ) {
+ List<CatalogCommand> commands = batch.stream()
+ .map(DdlPlan::command)
+ .collect(Collectors.toList());
+
+ return ddlCmdHnd.handle(commands).thenApply(result -> {
+
activationTimeListener.accept(HybridTimestamp.hybridTimestamp(result.getCatalogTime()));
+
+ List<AsyncDataCursor<InternalSqlRow>> cursors = new
ArrayList<>(commands.size());
+ for (int i = 0; i < commands.size(); i++) {
+
Review Comment:
no, this was added by mistake, thanks! (line before `for...` wasn't added,
because to that way is better my taste)
--
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]