wankunde commented on issue #6754:
URL: https://github.com/apache/kyuubi/issues/6754#issuecomment-2422005173
Test with local 50000 files:
```java
test("KYUUBI #6754: improve the performance of ranger access requests") {
val outputPath =
"/private/var/folders/tr/scn8dgl13_l6_sh17bghtln1b35kn1/T/kyuubi-test-5492934124608743789/"
println("output path: "+ outputPath)
val plugin = mock[SparkRangerAdminPlugin.type]
when(plugin.verify(Seq(any[RangerAccessRequest]),
any[SparkRangerAuditHandler]))
.thenAnswer(_ => ())
val df = spark.read.parquet(outputPath + "/*/*.parquet")
val plan = df.queryExecution.optimizedPlan
val start = System.currentTimeMillis()
RuleAuthorization(spark).checkPrivileges(spark, plan)
val end = System.currentTimeMillis()
println(s"Time elapsed : ${end - start} ms")
}
```
Before

After

--
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]