[KYUUBI #3347] [MINOR] Relocation AccessControlException
### _Why are the changes needed?_ This is a minor change, aims to relocation `AccessControlException` from `org.apache.kyuubi.plugin.spark.authz.utils` to `org.apache.kyuubi.plugin.spark.authz` ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #3347 from Yikf/minor-relocation. Closes #3347 05d95a7a [yikf] Relocation `AccessControlException` from org.apache.kyuubi.plugin.spark.authz.utils to org.apache.kyuubi.plugin.spark.authz Authored-by: yikf <yikaifei1@gmail.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
parent
53bbff8022
commit
5bb040687a
@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.apache.kyuubi.plugin.spark.authz.util
|
||||
package org.apache.kyuubi.plugin.spark.authz
|
||||
|
||||
/**
|
||||
* This exception is thrown by the Kyuubi AuthZ module to indicate
|
||||
@ -24,10 +24,9 @@ import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
|
||||
import org.apache.spark.sql.catalyst.rules.Rule
|
||||
import org.apache.spark.sql.catalyst.trees.TreeNodeTag
|
||||
|
||||
import org.apache.kyuubi.plugin.spark.authz.{ObjectType, _}
|
||||
import org.apache.kyuubi.plugin.spark.authz.{AccessControlException, ObjectType, _}
|
||||
import org.apache.kyuubi.plugin.spark.authz.ObjectType._
|
||||
import org.apache.kyuubi.plugin.spark.authz.ranger.RuleAuthorization.KYUUBI_AUTHZ_TAG
|
||||
import org.apache.kyuubi.plugin.spark.authz.util.AccessControlException
|
||||
import org.apache.kyuubi.plugin.spark.authz.util.AuthZUtils._
|
||||
|
||||
class RuleAuthorization(spark: SparkSession) extends Rule[LogicalPlan] {
|
||||
|
||||
@ -33,9 +33,9 @@ import org.scalatest.BeforeAndAfterAll
|
||||
// scalastyle:off
|
||||
import org.scalatest.funsuite.AnyFunSuite
|
||||
|
||||
import org.apache.kyuubi.plugin.spark.authz.AccessControlException
|
||||
import org.apache.kyuubi.plugin.spark.authz.SparkSessionProvider
|
||||
import org.apache.kyuubi.plugin.spark.authz.ranger.RuleAuthorization.KYUUBI_AUTHZ_TAG
|
||||
import org.apache.kyuubi.plugin.spark.authz.util.AccessControlException
|
||||
import org.apache.kyuubi.plugin.spark.authz.util.AuthZUtils.getFieldVal
|
||||
|
||||
abstract class RangerSparkExtensionSuite extends AnyFunSuite
|
||||
|
||||
Loading…
Reference in New Issue
Block a user