Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI: Add overwrite option when registering an iceberg table #12239

Merged
merged 5 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions open-api/rest-catalog-open-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ class PlanStatus(BaseModel):
class RegisterTableRequest(BaseModel):
name: str
metadata_location: str = Field(..., alias='metadata-location')
overwriteRequested: Optional[bool] = Field(
False, description='Whether to overwrite table metadata if table already exists'
)


class TokenType(BaseModel):
Expand Down
4 changes: 4 additions & 0 deletions open-api/rest-catalog-open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3463,6 +3463,10 @@ components:
type: string
metadata-location:
type: string
overwriteRequested:
description: Whether to overwrite table metadata if table already exists
type: boolean
default: false

CreateViewRequest:
type: object
Expand Down