korlov42 commented on a change in pull request #9369:
URL: https://github.com/apache/ignite/pull/9369#discussion_r702868969
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/QueryTemplate.java
##########
@@ -89,10 +91,11 @@ public ExecutionPlan map(PlanningContext ctx) {
}
/** */
- @NotNull private List<Fragment> map(List<Fragment> fragments,
PlanningContext ctx, RelMetadataQuery mq) {
+ @NotNull private List<Fragment> map(List<Fragment> fragments,
MappingQueryContext ctx, RelMetadataQuery mq) {
ImmutableList.Builder<Fragment> b = ImmutableList.builder();
+
for (Fragment fragment : fragments)
- b.add(fragment.map(mappingService, ctx, mq).detach());
+ b.add(fragment.map(mappingService, ctx, mq).copy());
Review comment:
look like this `copy()` is unnecessary here
--
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]