korlov42 commented on a change in pull request #9476:
URL: https://github.com/apache/ignite/pull/9476#discussion_r735601113
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/ExecutionServiceImpl.java
##########
@@ -744,51 +556,54 @@ private FieldsMetadata
explainFieldsMetadata(PlanningContext ctx) {
Throwable ex = null;
for (UUID nodeId : fragmentDesc.nodeIds()) {
if (ex != null)
- info.onResponse(nodeId, fragment.fragmentId(), ex);
+ qry.onResponse(nodeId, fragment.fragmentId(), ex);
else {
try {
QueryStartRequest req = new QueryStartRequest(
- qryId,
- qctx.schemaName(),
+ qry.id(),
+ qry.context().schemaName(),
fragment.serialized(),
ectx.topologyVersion(),
fragmentDesc,
- params);
+ qry.parameters());
messageService().send(nodeId, req);
}
catch (Throwable e) {
- info.onResponse(nodeId, fragment.fragmentId(), ex = e);
+ qry.onResponse(nodeId, fragment.fragmentId(), ex = e);
}
}
}
}
- return new ListFieldsQueryCursor<>(plan, info.iterator(), ectx);
+ return new ListFieldsQueryCursor<>(plan,
iteratorsHolder().iterator(qry.iterator()), ectx);
}
/** */
- private FieldsQueryCursor<List<?>> executeExplain(ExplainPlan plan,
PlanningContext pctx) {
+ private FieldsQueryCursor<List<?>> executeExplain(ExplainPlan plan) {
QueryCursorImpl<List<?>> cur = new
QueryCursorImpl<>(singletonList(singletonList(plan.plan())));
-
cur.fieldsMeta(plan.fieldsMeta().queryFieldsMetadata(pctx.typeFactory()));
+
cur.fieldsMeta(plan.fieldsMeta().queryFieldsMetadata(Commons.typeFactory()));
return cur;
}
/** */
- private void executeFragment(UUID qryId, FragmentPlan plan,
ExecutionContext<Row> ectx) {
+ private void executeFragment(Query<Row> qry, FragmentPlan plan,
ExecutionContext<Row> ectx) {
UUID origNodeId = ectx.originatingNodeId();
Outbox<Row> node = new LogicalRelImplementor<>(
- ectx,
- partitionService(),
- mailboxRegistry(),
- exchangeService(),
- failureProcessor())
- .go(plan.root());
+ ectx,
+ partitionService(),
+ mailboxRegistry(),
+ exchangeService(),
+ failureProcessor())
+ .go(plan.root()
+ );
Review comment:
```suggestion
failureProcessor()
)
.go(plan.root());
```
--
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]