You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "PengLei (Jira)" <ji...@apache.org> on 2021/09/17 06:28:00 UTC

[jira] [Updated] (SPARK-36790) Update user-facing catalog to adapt CatalogPlugin

     [ https://issues.apache.org/jira/browse/SPARK-36790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

PengLei updated SPARK-36790:
----------------------------
    Description: 
At now the SparkSession.catalog always retuan a CatalogImpl with a SessionCatalog that is SparkSession.sessionState.catalog
{code:java}
@transient lazy val catalog: Catalog = new CatalogImpl(self)
{code}
{code:java}
private def sessionCatalog: SessionCatalog = sparkSession.sessionState.catalog
{code}
So we can do the action is just based the SessionCatalog, we could not do action based user-defined CatalogPlugin.

> Update user-facing catalog to adapt CatalogPlugin
> -------------------------------------------------
>
>                 Key: SPARK-36790
>                 URL: https://issues.apache.org/jira/browse/SPARK-36790
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: PengLei
>            Priority: Minor
>             Fix For: 3.3.0
>
>
> At now the SparkSession.catalog always retuan a CatalogImpl with a SessionCatalog that is SparkSession.sessionState.catalog
> {code:java}
> @transient lazy val catalog: Catalog = new CatalogImpl(self)
> {code}
> {code:java}
> private def sessionCatalog: SessionCatalog = sparkSession.sessionState.catalog
> {code}
> So we can do the action is just based the SessionCatalog, we could not do action based user-defined CatalogPlugin.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org