After this PR #9272, the `docs/build_help_zip.sh` will run failed. This PR fix this issue. But the help module still has some parse problem, I will fix it in next PR. This CL mainly changes: 1. fix `docs/build_help_zip.sh` error 2. remove `sql-reference-v2` to `sql-reference` 3. modify build extension github action to run `docs/build_help_zip.sh`
2.1 KiB
2.1 KiB
title, language
| title | language |
|---|---|
| CREATE-DATABASE | en |
CREATE-DATABASE
Name
CREATE DATABASE
Description
This statement is used to create a new database (database)
grammar:
CREATE DATABASE [IF NOT EXISTS] db_name
[PROPERTIES ("key"="value", ...)];
PROPERTIES Additional information about the database, which can be defaulted.
-
If you create an Iceberg database, you need to provide the following information in properties:
PROPERTIES ( "iceberg.database" = "iceberg_db_name", "iceberg.hive.metastore.uris" = "thrift://127.0.0.1:9083", "iceberg.catalog.type" = "HIVE_CATALOG" )illustrate:
ceberg.database: the library name corresponding to Iceberg;iceberg.hive.metastore.uris: hive metastore service address;iceberg.catalog.type: The default isHIVE_CATALOG; currently onlyHIVE_CATALOGis supported, and more Iceberg catalog types will be supported in the future.
Example
-
Create a new database db_test
CREATE DATABASE db_test; -
Create a new Iceberg database iceberg_test
CREATE DATABASE `iceberg_test` PROPERTIES ( "iceberg.database" = "doris", "iceberg.hive.metastore.uris" = "thrift://127.0.0.1:9083", "iceberg.catalog.type" = "HIVE_CATALOG" );
Keywords
CREATE, DATABASE