cloud-fan commented on a change in pull request #34104:
URL: https://github.com/apache/spark/pull/34104#discussion_r716456546
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
##########
@@ -330,7 +330,7 @@ class DataSourceV2Strategy(session: SparkSession) extends
Strategy with Predicat
SetCatalogAndNamespaceExec(catalogManager, catalogName, ns) :: Nil
case r: ShowCurrentNamespace =>
- ShowCurrentNamespaceExec(r.output, r.catalogManager) :: Nil
+ ShowCurrentNamespaceExec(r.output, r.catalogManager.get) :: Nil
Review comment:
then the logical plan can be `case class ShowCurrentNamespace extends
LeafCommand`
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
##########
@@ -330,7 +330,7 @@ class DataSourceV2Strategy(session: SparkSession) extends
Strategy with Predicat
SetCatalogAndNamespaceExec(catalogManager, catalogName, ns) :: Nil
case r: ShowCurrentNamespace =>
- ShowCurrentNamespaceExec(r.output, r.catalogManager) :: Nil
+ ShowCurrentNamespaceExec(r.output, r.catalogManager.get) :: Nil
Review comment:
then the logical plan can be `case class ShowCurrentNamespace() extends
LeafCommand`
--
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]