Skip to content

Commit 3154e8c

Browse files
Spec: Add RemovePartitionSpecsUpdate as a possible update type
1 parent 4a0ae22 commit 3154e8c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

open-api/rest-catalog-open-api.py

+3
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ class RemovePartitionStatisticsUpdate(BaseUpdate):
359359
action: Literal['remove-partition-statistics']
360360
snapshot_id: int = Field(..., alias='snapshot-id')
361361

362+
class RemovePartitionSpecsUpdate(BaseUpdate):
363+
action: Literal['remove-partition-specs']
364+
spec_ids: int = List[int]
362365

363366
class AssertCreate(BaseModel):
364367
"""

open-api/rest-catalog-open-api.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -2265,6 +2265,7 @@ components:
22652265
remove-statistics: '#/components/schemas/RemoveStatisticsUpdate'
22662266
set-partition-statistics: '#/components/schemas/SetPartitionStatisticsUpdate'
22672267
remove-partition-statistics: '#/components/schemas/RemovePartitionStatisticsUpdate'
2268+
remove-partition-specs: '#/components/schemas/RemovePartitionSpecsUpdate'
22682269
type: object
22692270
required:
22702271
- action
@@ -2567,6 +2568,21 @@ components:
25672568
type: integer
25682569
format: int64
25692570

2571+
RemovePartitionSpecsUpdate:
2572+
allOf:
2573+
- $ref: '#/components/schemas/BaseUpdate'
2574+
required:
2575+
- spec-ids
2576+
properties:
2577+
action:
2578+
type: string
2579+
enum: [ "remove-partition-specs" ]
2580+
removals:
2581+
type: array
2582+
items:
2583+
type: integer
2584+
format: int64
2585+
25702586
TableUpdate:
25712587
anyOf:
25722588
- $ref: '#/components/schemas/AssignUUIDUpdate'
@@ -2586,6 +2602,7 @@ components:
25862602
- $ref: '#/components/schemas/RemovePropertiesUpdate'
25872603
- $ref: '#/components/schemas/SetStatisticsUpdate'
25882604
- $ref: '#/components/schemas/RemoveStatisticsUpdate'
2605+
- $ref: '#/components/schemas/RemovePartitionSpecsUpdate'
25892606

25902607
ViewUpdate:
25912608
anyOf:

0 commit comments

Comments
 (0)