SteNicholas commented on code in PR #6634:
URL: https://github.com/apache/kyuubi/pull/6634#discussion_r1728222051
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/tableExtractors.scala:
##########
@@ -88,7 +97,9 @@ class TableIdentifierTableExtractor extends TableExtractor {
val catalogTable =
spark.sessionState.catalog.getTableMetadata(identifier)
Option(catalogTable.owner).filter(_.nonEmpty)
} catch {
- case _: Exception => None
+ case e: Throwable =>
+ logDebug("Extract owner from table failed.", e)
Review Comment:
```suggestion
logWarning("Failed to extract owner from table.", e)
```
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/serde/tableExtractors.scala:
##########
@@ -69,7 +76,9 @@ object TableExtractor {
getOwner(table)
} catch {
// Exception may occur due to invalid reflection or table not found
- case _: Exception => None
+ case e: Throwable =>
+ logDebug("Extract owner from table failed.", e)
Review Comment:
```suggestion
logWarning("Failed to extract owner from table.", e)
```
--
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]