Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KYUUBI #5780][AUTHZ] Treating PermanentViewMarker as LeafNode make code simple and got correct privilege object #5781

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Update RuleApplyPermanentViewMarker.scala
AngersZhuuuu committed Nov 28, 2023
commit 2113cf51b703e47d40277a81898f12a416af94c9
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ class RuleApplyPermanentViewMarker extends Rule[LogicalPlan] {
plan mapChildren {
case p: PermanentViewMarker => p
case permanentView: View if hasResolvedPermanentView(permanentView) =>
val resolved = permanentView.child.transformAllExpressions {
val resolved = permanentView.transformAllExpressions {
case subquery: SubqueryExpression =>
subquery.withNewPlan(plan = PermanentViewMarker(subquery.plan, permanentView.desc))
}