pan3793 commented on code in PR #7552:
URL: https://github.com/apache/kyuubi/pull/7552#discussion_r3558048803
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtension.scala:
##########
@@ -49,6 +50,8 @@ class RangerSparkExtension extends (SparkSessionExtensions =>
Unit) {
// because ConstantFolding will optimize deterministic UDFs with foldable
// inputs (e.g., literals), replacing them with their results and
bypassing permission checks.
v1.injectCheckRule(RuleFunctionAuthorization)
+ // Clear leaked authz tags from cached catalog nodes before any authz
resolution rule runs.
+ v1.injectResolutionRule(_ => RuleClearAuthzTag)
Review Comment:
you are right, moved to `injectPostHocResolutionRule`
BTW, without `RuleClearAuthzTag`, two permanent-view tests fail on Spark 4.0:
1. `[KYUUBI #5472] Permanent View should pass column when child plan no
output`
2. `[KYUUBI #5503][AUTHZ] Check plan auth checked should not set tag to all
child nodes`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]