CREATE DESCRIPTOR_SOURCE
Syntax
Description
Creates Descriptor(s) from the schemas available in the Descriptor source file. When creating a Descriptor Source in DeltaStream, the Descriptor Source is parsed and all schemas are extracted and created as separate descriptors for the user. These descriptors can then be used to set serialization format for Entity.
Supports Protocol Buffer descriptors.
Arguments
descriptor_source_name
Name of the Descriptor Source to be imported. For case-sensitive names, the name must be wrapped in double quotes, otherwise, the lowercased name will be used.
WITH (descriptor_source_parameter = value [, … ])
This clause specifies the Descriptor Source Parameters.
Descriptor Source Parameters
Parameter Name | Description |
---|---|
| Specifies a local filesystem path to import the descriptor(s) from. Required: Yes Type: String Valid values: A valid file path in the current user's local filesystem, prefixed with |
Examples
Create a new Descriptor Source from local file
The following creates a Descriptor Source from the ProtoBuf descriptors file /descriptors/pageviews.desc
on the local filesystem and gives it a recognizable name pageviews
for reference from an Entity:
Once the Descriptor Source is imported, all its ProtoBuf descriptors are extracted and can be listed with LIST DESCRIPTORS.
Last updated