createSchema

Syntax

createSchema(catalog, dbUrl, schema)

Arguments

catalog is a string specifying the catalog name.

dbUrl is a string indicating the database URL.

schema is a string indicating the schema name.

Details

Add a database to a catalog. Note that a database can only be added to one catalog.

The dbUrl of a database is unique globally, while the schemas under difference catalogs can share the same names. When adding a database to a catalog, a schema name must be specified. Operations on this schema must use this name instead of dbUrl.

Examples

createSchema("catalog1", "dfs://db1", "schema1")