[
https://issues.apache.org/jira/browse/CALCITE-7280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18036281#comment-18036281
]
Stamatis Zampetakis commented on CALCITE-7280:
----------------------------------------------
There have been various discussions in the past that generally discourage the
use of copy and suggest the use of RelBuilder. I guess it will be preferred if
you could achieve the desired outcome in CALCITE-5390 using the RelBuilder.
> Introduce RelNode.copy, which can copy the variable set
> -------------------------------------------------------
>
> Key: CALCITE-7280
> URL: https://issues.apache.org/jira/browse/CALCITE-7280
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.41.0
> Reporter: Dmitry Sysolyatin
> Assignee: Dmitry Sysolyatin
> Priority: Major
> Labels: pull-request-available
>
> Right now, the `RelNode` interface knows about variablesSet through
> getVariablesSet, but there isn’t a copy that can replace this variablesSet.
> Proposal to introduce:
> {code}
> RelNode copy(
> RelTraitSet traitSet,
> List<RelNode> inputs,
> Set<CorrelationId> variablesSet
> );
> {code}
> It is a prerequisite for [CALCITE-5390].
--
This message was sent by Atlassian Jira
(v8.20.10#820010)