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
   
![Before](https://github.com/user-attachments/assets/081127d8-3b24-4b65-9f9b-e3906b3668bc)
   After
   
![After](https://github.com/user-attachments/assets/1331b9c1-8c1a-4a60-925c-8b59c839c32a)
   


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

Reply via email to