This command creates a VAST database table.
Usage
table create --name TABLE
--schema-name SCHEMA
--arrow-schema COLUMNS
--database-name DATABASE
[--tenant-id TENANT]
[--sorted-column-names SORT_COLUMNS]
[--partitions-config PARTITION_COLUMNS] Required Parameters
| Specifies the name for the table being created. The name must meet the requirements for S3 object names. |
| Specifies the name of the schema where the table is to be created. |
| Specifies the columns for the new table, as a comma-separated list. The columns are specified using the Arrow format, for example:
|
| Specifies the name of the database where the table's schema is created. |
Options
| Specifies the ID of the tenant where the database resides If omitted, the default tenant is assumed. |
| Specifies a comma-separated list of up to four columns that are used to sort the table. Sorting is done according to the order of the names as they appear in the list. Example |
| Specifies a list of up to four table columns or column transformations that are used to partition the table. Example In this example, Example In this example, if |
Example
This example shows adding a table named cats to schema schema1 in database vastdb:
vcli: admin> table create --name cats --schema-name schema1 --arrow-schema name-string,age-int8 --database_name vastdb