Share
laktory.models.resources.databricks.Share
¤
Bases: ShareBase
Databricks Share for Delta Sharing
A share is a container that holds the objects to be shared with recipients. Shares enable data sharing between Databricks workspaces.
Examples:
import io
from laktory import models
share_yaml = '''
name: finance-share
comment: Share for the finance domain data
objects:
- name: dev.finance.slv_stock_prices
data_object_type: TABLE
comment: Silver stock prices table
'''
share = models.resources.databricks.Share.model_validate_yaml(
io.StringIO(share_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
comment
|
Description about the object
TYPE:
|
name
|
The name of the partition column
TYPE:
|
object
|
TYPE:
|
owner
|
User name/group name/sp application_id of the share owner
TYPE:
|
storage_root
|
TYPE:
|
| LAKTORY | DESCRIPTION |
|---|---|
provider_config
|
Provider config
TYPE:
|
laktory.models.resources.databricks.share.ShareObject
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
cdf_enabled
|
Whether to enable Change Data Feed (cdf) on the shared object. When this field is set, field
TYPE:
|
comment
|
Description about the object
TYPE:
|
content
|
The content of the notebook file when the data object type is NOTEBOOK_FILE. This should be base64 encoded. Required for adding a NOTEBOOK_FILE, optional for updating, ignored for other types
TYPE:
|
data_object_type
|
Type of the data object. Supported types:
TYPE:
|
history_data_sharing_status
|
Whether to enable history sharing, one of:
TYPE:
|
name
|
The name of the partition column
TYPE:
|
partition
|
Array of partitions for the shared data
TYPE:
|
shared_as
|
A user-provided alias name for table-like data objects within the share. Use this field for:
TYPE:
|
start_version
|
The start version associated with the object for cdf. This allows data providers to control the lowest object version that is accessible by clients
TYPE:
|
string_shared_as
|
A user-provided alias name for non-table data objects within the share. Use this field for:
TYPE:
|
laktory.models.resources.databricks.share.ShareObjectPartition
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
value
|
The value of the partition column. When this value is not set, it means null value. When this field is set, field
TYPE:
|
laktory.models.resources.databricks.share.ShareObjectPartitionValue
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
name
|
The name of the partition column
TYPE:
|
op
|
The operator to apply for the value, one of:
TYPE:
|
recipient_property_key
|
The key of a Delta Sharing recipient's property. For example
TYPE:
|
value
|
The value of the partition column. When this value is not set, it means null value. When this field is set, field
TYPE:
|
laktory.models.resources.databricks.share.ShareProviderConfig
¤
Bases: BaseModel
Provider Config
| PARAMETER | DESCRIPTION |
|---|---|
workspace_id
|
Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
TYPE:
|