xtern commented on code in PR #4591:
URL: https://github.com/apache/ignite-3/pull/4591#discussion_r1813017544


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/SqlQueryProcessor.java:
##########
@@ -518,23 +533,30 @@ private CompletableFuture<AsyncSqlCursor<InternalSqlRow>> 
querySingle(
                 : CompletableFuture.supplyAsync(() -> parseAndCache(sql), 
taskExecutor);
 
         return start.thenCompose(result -> {
+            queryInfo.queryType(result.queryType());
             validateParsedStatement(properties, result);
             validateDynamicParameters(result.dynamicParamsCount(), params, 
true);
 
             HybridTimestamp operationTime = deriveOperationTime(txContext);
 
             SqlOperationContext operationContext = 
SqlOperationContext.builder()
-                    .queryId(UUID.randomUUID())
+                    .queryId(queryInfo.queryId())

Review Comment:
   the simple answer is we can't, because it is only used in preparation for 
execution and is not present on remote nodes.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to