CREATE ENTITY
Syntax
Description
This command creates a new Entity supported by a Store. These Entities can then be used to host Relations created through DDL or Query.
The entities created by this command can be listed using LIST ENTITIES.
Arguments
fully_qualified_entity_name
The full name of the Entity to create.
IN STORE store_name
Optionally, this creates the Entity in the specified Store. For case-sensitive names, the name must be wrapped in double quotes, otherwise, the lowercased name will be used.
WITH (entity_parameter = value [, …])
This clause specifies Entity Parameters.
Entity Parameters
Parameter Name | Description |
---|---|
| A qualified Descriptor name used to decode a record's key, if applicable. Reset the Descriptor by setting it to Required: No Default value: None Type: String Valid values: See LIST DESCRIPTORS. |
| A qualified Descriptor name used to decode a record's value. Reset the Descriptor by setting it to Required: No Default value: None Type: String Valid values: See LIST DESCRIPTORS. |
Kafka Specific Entity Parameters
Parameters to be used if the associated Store is type KAFKA
:
Parameter Name | Description |
---|---|
| The number of partitions to use when creating the Entity. Required: No Default value: 1 Type: Integer Valid values: [1,…] |
| The number of replicas to use when creating the Entity. Required: No Default value: 1 Type: Integer Valid values: [1,…] |
| A configuration specific for the topic that will be created, e.g. Kafka Topic Configuration for Confluent Platform. Required: No Default value: None Type: String Valid values: Kafka topic configuration specific to the underlying Storetype. |
Kinesis Specific Entity Parameters
Parameters to be used if the associated Store is type KINESIS
:
Parameter Name | Description |
---|---|
| The number of shards to use when creating the Entity. Required: No Default value: 1 Type: Integer Valid values: [1,…] |
Examples
Create a new Kafka topic with defaults
The following creates a Entity called pageviews
using the default parameters in the user's default Store:
Create a new Kafka topic with key and value ProtoBuf Descriptors
The following creates a Entity called pageviews_pb
in the user's default store. It also sets the key and value Descriptors that are necessary for serializing its records:
Create a new Entity in Kinesis Store with Kinesis parameters
The following creates a Entity called pageviews_kinesis
in the store named kinesis_store
with 3 shards:
Create a Snowflake database
Create a Snowflake schema in a database
In this example we create a new schema within the existing DELTA_STREAMING
Snowflake database:
Create a Databricks catalog
Create a Databricks schema in a catalog
In this example we create a new schema within the existing DELTA_STREAMING
Snowflake database:
Last updated