cloud-fan commented on a change in pull request #32718: URL: https://github.com/apache/spark/pull/32718#discussion_r642940513
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/finishAnalysis.scala ########## @@ -109,6 +112,11 @@ case class GetCurrentDatabaseAndCatalog(catalogManager: CatalogManager) extends Literal.create(currentNamespace, StringType) case CurrentCatalog() => Literal.create(currentCatalog, StringType) Review comment: like this, we should pre-calculate the current user before transforming the query plan. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org