You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`CreateTable` represents a request to create a new table instance (coming from [TableCli](../cli/TableCli.md#createTable)).
4
+
5
+
`CreateTable` is `POST`ed to `/tables` API endpoint of the [TableService](TableService.md#createTable) (to persist using [TableRepository](../persistent-storage/TableRepository.md#createTable)).
6
+
7
+
Property | Required | Description
8
+
-|-|-
9
+
`catalog_name` | ✅ | Name of parent catalog
10
+
`columns` | ✅ | An array of `ColumnInfo`s of the table's columns
11
+
`comment` | | User-provided free-form text description
12
+
`data_source_format` | ✅ | Data source format:<ul><li>`DELTA`<li>`CSV`<li>`JSON`<li>`AVRO`<li>`PARQUET`<li>`ORC`<li>`TEXT`</ul>
13
+
`name` | ✅ | Name of table, relative to parent schema.
14
+
`properties` | ✅ | Name of table, relative to parent schema.
15
+
`schema_name` | ✅ | Name of parent schema relative to its parent catalog
16
+
`storage_location` | | Storage root URL<br>⛔️ Required for `EXTERNAL` tables
17
+
`table_type` | ✅ | One of the following:<ul><li>`MANAGED` ([not supported by the Localhost Reference Server](../persistent-storage/TableRepository.md#createTable))<li>`EXTERNAL`</ul>
18
+
19
+
??? note "OpenAPI Generator"
20
+
`CreateTable` was auto-generated using [OpenAPI Generator]({{ openapi.home }}) based on Unity Catalog's [OpenAPI specification]({{ uc.github }}/api/all.yaml).
21
+
22
+
[sbt-openapi-generator]({{ openapi.github }}/sbt-openapi-generator) 7.5.0 is used in the `client` sbt module of the `unitycatalog` project.
`createTable` requests the system-wide [TableRepository](#TABLE_REPOSITORY) instance to [persist](../persistent-storage/TableRepository.md#createTable) the given [table metadata](CreateTable.md).
0 commit comments