Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
* <p>
* Note: non-deterministic predicates can not be pulled up (so they will be ignored)
*/
@Deprecated
public class EffectivePredicateExtractor
{
private static final Predicate<Map.Entry<VariableReferenceExpression, ? extends Expression>> VARIABLE_MATCHES_EXPRESSION =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ private RowExpressionEqualityInference(
this.derivedExpressions = ImmutableSet.copyOf(derivedExpressions);
}

public static RowExpressionEqualityInference createEqualityInference(Metadata metadata, RowExpression... equalityInferences)
{
return new Builder(metadata)
.addEqualityInference(equalityInferences)
.build();
}

/**
* Attempts to rewrite an RowExpression in terms of the symbols allowed by the symbol scope
* given the known equalities. Returns null if unsuccessful.
Expand Down
Loading