-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 description for AssignUUID #8753
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one, thanks!
@@ -230,6 +230,10 @@ class BaseUpdate(BaseModel): | |||
|
|||
|
|||
class AssignUUIDUpdate(BaseUpdate): | |||
""" | |||
Assigning a UUID to a table/view should only be done when creating the table/view. It is not safe to re-assign the UUID if a table/view already has a UUID assigned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if we expect the services to throw some validation exp or BadRequest in case there already exists a table and if yes should we document this here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@singhpk234 this is being handled by the TableRequirement
section, more specifically, there is assert-create
:
iceberg/open-api/rest-catalog-open-api.yaml
Line 1831 in 621d301
- `assert-create` - the table must not already exist; used for create transactions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks !
thanks everyone for reviewing |
Added a description based on feedback from dd26f36#r129277242