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

Nicholas Chammas updated SPARK-46449:
-------------------------------------
    Summary: Add ability to create databases/schemas via Catalog API  (was: Add 
ability to create databases via Catalog API)

> Add ability to create databases/schemas via Catalog API
> -------------------------------------------------------
>
>                 Key: SPARK-46449
>                 URL: https://issues.apache.org/jira/browse/SPARK-46449
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.5.0
>            Reporter: Nicholas Chammas
>            Priority: Minor
>
> As of Spark 3.5, the only way to create a database is via SQL. The Catalog 
> API should offer an equivalent.
> Perhaps something like:
> {code:python}
> spark.catalog.createDatabase(
>     name: str,
>     existsOk: bool = False,
>     comment: str = None,
>     location: str = None,
>     properties: dict = None,
> )
> {code}
> If {{schema}} is the preferred terminology, then we should use that instead 
> of {{database}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to