Nicholas Chammas created SPARK-46449:
----------------------------------------

             Summary: Add ability to create databases 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


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}



--
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