Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Mar 20, 2024
1 parent 78f89f9 commit 06e4398
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,16 @@ public List<Rule> buildRules() {
}
}

// row policy
RelatedPolicy relatedPolicy = checkPolicy.findPolicy(relation, ctx.cascadesContext);

relatedPolicy.rowPolicyFilter.ifPresent(expression -> combineFilter.addAll(
ExpressionUtils.extractConjunctionToSet(expression)));

Plan result;
if (combineFilter.isEmpty()) {
result = relation;
} else {
if (upperFilter != null) {
combineFilter.addAll(upperFilter.getConjuncts());
}
Plan result = relation;
if (upperFilter != null) {
combineFilter.addAll(upperFilter.getConjuncts());
}
if (!combineFilter.isEmpty()) {
result = new LogicalFilter<>(combineFilter, relation);
}

if (relatedPolicy.dataMaskProjects.isPresent()) {
result = new LogicalProject<>(relatedPolicy.dataMaskProjects.get(), result);
}
Expand Down

0 comments on commit 06e4398

Please sign in to comment.