use of org.apache.ignite.internal.sql.engine.trait.CorrelationTrait in project ignite-3 by apache.
the class IgniteFilter method passThroughCorrelation.
/**
* PassThroughCorrelation.
* TODO Documentation https://issues.apache.org/jira/browse/IGNITE-15859
*/
@Override
public Pair<RelTraitSet, List<RelTraitSet>> passThroughCorrelation(RelTraitSet nodeTraits, List<RelTraitSet> inTraits) {
Set<CorrelationId> corrSet = RexUtils.extractCorrelationIds(getCondition());
CorrelationTrait correlation = TraitUtils.correlation(nodeTraits);
if (corrSet.isEmpty() || correlation.correlationIds().containsAll(corrSet)) {
return Pair.of(nodeTraits, List.of(inTraits.get(0).replace(correlation)));
}
return null;
}
Aggregations