Skip to content

Commit

Permalink
Spec, OpenAPI: Adds EnableRowLineage Metadata Update (#12050)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellSpitzer authored Jan 24, 2025
1 parent da1ea10 commit 2256663
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions open-api/rest-catalog-open-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ class RemovePartitionSpecsUpdate(BaseUpdate):
spec_ids: List[int] = Field(..., alias='spec-ids')


class EnableRowLineageUpdate(BaseUpdate):
action: str = Field('enable-row-lineage', const=True)


class TableRequirement(BaseModel):
type: str

Expand Down Expand Up @@ -1173,6 +1177,7 @@ class TableUpdate(BaseModel):
SetStatisticsUpdate,
RemoveStatisticsUpdate,
RemovePartitionSpecsUpdate,
EnableRowLineageUpdate,
]


Expand Down
11 changes: 11 additions & 0 deletions open-api/rest-catalog-open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2648,6 +2648,7 @@ components:
set-partition-statistics: '#/components/schemas/SetPartitionStatisticsUpdate'
remove-partition-statistics: '#/components/schemas/RemovePartitionStatisticsUpdate'
remove-partition-specs: '#/components/schemas/RemovePartitionSpecsUpdate'
enable-row-lineage: '#/components/schemas/EnableRowLineageUpdate'
type: object
required:
- action
Expand Down Expand Up @@ -2949,6 +2950,15 @@ components:
items:
type: integer

# Disabling Row Lineage is Forbidden
EnableRowLineageUpdate:
allOf:
- $ref: '#/components/schemas/BaseUpdate'
properties:
action:
type: string
const: "enable-row-lineage"

TableUpdate:
anyOf:
- $ref: '#/components/schemas/AssignUUIDUpdate'
Expand All @@ -2969,6 +2979,7 @@ components:
- $ref: '#/components/schemas/SetStatisticsUpdate'
- $ref: '#/components/schemas/RemoveStatisticsUpdate'
- $ref: '#/components/schemas/RemovePartitionSpecsUpdate'
- $ref: '#/components/schemas/EnableRowLineageUpdate'

ViewUpdate:
anyOf:
Expand Down

0 comments on commit 2256663

Please sign in to comment.