You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "pan3793 (via GitHub)" <gi...@apache.org> on 2023/05/30 06:50:10 UTC
[GitHub] [kyuubi] pan3793 commented on a diff in pull request #4901: [AUTHZ] Fix exception when listing database in CatalogImpl in Spark 3.4
pan3793 commented on code in PR #4901:
URL: https://github.com/apache/kyuubi/pull/4901#discussion_r1209779381
##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/SparkSessionProvider.scala:
##########
@@ -60,7 +60,7 @@ trait SparkSessionProvider {
// Ensure HiveExternalCatalog.client.userName is defaultTableOwner
UserGroupInformation.createRemoteUser(defaultTableOwner).doAs(
new PrivilegedExceptionAction[Unit] {
- override def run(): Unit = ret.catalog.listDatabases()
+ override def run(): Unit = ret.sql("SHOW DATABASES;").collect()
Review Comment:
```suggestion
override def run(): Unit = ret.sql("SHOW DATABASES").collect()
```
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org