bowenliang123 commented on code in PR #3197:
URL: https://github.com/apache/incubator-kyuubi/pull/3197#discussion_r940049818
##########
extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/util/AuthZUtils.scala:
##########
@@ -84,6 +85,14 @@ private[authz] object AuthZUtils {
getFieldVal[Option[CatalogTable]](plan, "catalogTable")
}
+ def hasResolvedDatasourceV2Table(plan: LogicalPlan): Boolean = {
+ plan.nodeName == "DataSourceV2Relation" && plan.resolved
+ }
+
+ def getDatasourceV2Identifier(plan: LogicalPlan): Option[Identifier] = {
Review Comment:
Good suggestion. Followed your example and avoiding import packages for
spark version compatibility. Please have a check.
--
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]