LadyForest commented on code in PR #159:
URL: https://github.com/apache/flink-table-store/pull/159#discussion_r898770845


##########
docs/content/docs/development/create-table.md:
##########
@@ -26,6 +26,31 @@ under the License.
 
 # Create Table
 
+## Catalog
+
+Table Store uses Catalog to manage all the databases and tables. You need to 
create a
+Table Store catalog and use it. Table Store catalog has a root directory, 
configured through `warehouse`.
+
+```sql
+CREATE CATALOG my_catalog WITH (
+  'type'='table-store',
+  'warehouse'='hdfs://nn:8020/warehouse/path'
+);
+
+USE CATALOG my_catalog;
+```
+
+Table Store catalog supports SQL DDL commands:
+- `CREATE TABLE ... PARTITIONED BY`
+- `DROP TABLE ...`
+- `ALTER TABLE ...`
+- `SHOW DATABASES`
+- `SHOW TABLES`
+
+The path of table in catalog is 
`${warehouse}/${database_name}.db/${table_name}`.

Review Comment:
   Suggest moving it right following the sql example



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to