You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2022/01/14 12:43:34 UTC
[GitHub] [calcite] korlov42 commented on a change in pull request #2623: CALCITE-4913 Correlated variables in a select list are not deduplicated
korlov42 commented on a change in pull request #2623:
URL: https://github.com/apache/calcite/pull/2623#discussion_r784814012
##########
File path: core/src/main/java/org/apache/calcite/rel/core/Project.java
##########
@@ -89,25 +94,33 @@ protected Project(
List<RelHint> hints,
RelNode input,
List<? extends RexNode> projects,
- RelDataType rowType) {
+ RelDataType rowType,
+ Set<CorrelationId> variablesSet) {
super(cluster, traits, input);
assert rowType != null;
this.exps = ImmutableList.copyOf(projects);
this.hints = ImmutableList.copyOf(hints);
this.rowType = rowType;
+ this.variablesSet = ImmutableSet.copyOf(
+ Objects.requireNonNull(variablesSet, "variablesSet"));
assert isValid(Litmus.THROW, null);
}
+ protected Project(RelOptCluster cluster, RelTraitSet traits, List<RelHint> hints,
+ RelNode input, List<? extends RexNode> projects, RelDataType rowType) {
+ this(cluster, traits, hints, input, projects, rowType, ImmutableSet.of());
+ }
Review comment:
mark this constructor as `@Deprecated`
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org