pan3793 commented on code in PR #7187:
URL: https://github.com/apache/kyuubi/pull/7187#discussion_r2605263871
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/ranger/RangerSparkExtension.scala:
##########
@@ -45,6 +45,7 @@ class RangerSparkExtension extends (SparkSessionExtensions =>
Unit) {
override def apply(v1: SparkSessionExtensions): Unit = {
v1.injectCheckRule(AuthzConfigurationChecker)
+ v1.injectCheckRule(RuleFunctionAuthorization)
Review Comment:
the cases you provided are actually what `ConstantFolding` does, for a
deterministic Hive UDF, when the input is foldable, e.g., a literal, the
expression can be folded by the optimizer, this is also a corner case where the
UDF evaluation occurs on the driver side instead of the executor side.
@ygjia could you please add some comments to briefly explain that?
--
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]