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]
Required Parameters
| Specifies the name for the table being created. The name must meet the requirements for S3 object names. |
| Speciies the name of the schema where the table is to be created. |
| Specifies the columns 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 |
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