lowka commented on code in PR #4221:
URL: https://github.com/apache/ignite-3/pull/4221#discussion_r1723118947
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/PrepareServiceImpl.java:
##########
@@ -295,19 +379,36 @@ private CompletableFuture<QueryPlan>
prepareExplain(ParsedResult parsedResult, P
explicandum
);
- CompletableFuture<QueryPlan> result;
- switch (queryType) {
- case QUERY:
- result = prepareQuery(newParsedResult, ctx);
- break;
- case DML:
- result = prepareDml(newParsedResult, ctx);
- break;
- default:
- throw new AssertionError("should not get here");
- }
+ // Validate statement.
+
+ CompletableFuture<ValidStatement> validFut =
validateStatement(newParsedResult, ctx);
+
+ // Try optimize to fast
+ CompletableFuture<FastOptimizationResult> plannedOrValidated =
+ validFut.thenApply(stmt -> tryOptimizeFast(stmt, ctx,
txContext));
Review Comment:
Fixed.
--
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]