stevenzwu opened a new pull request, #15691:
URL: https://github.com/apache/iceberg/pull/15691
Table and view identifiers share the same namespace scope, so a table and a
view with the same name in the same namespace are not allowed. The rename and
register-view endpoints already enforced this with "already exists as a table
or view", but createTable, registerTable, and createView only guarded against
same-type conflicts.
This change makes all six write operations consistent by using the new
CatalogObjectType schema, which enumerates the known object types (table, view)
and states the uniqueness invariant explicitly. The 409 conflict descriptions
are updated to:
- "The identifier is already used by an existing catalog object (see
`CatalogObjectType`)"
- "The target identifier to rename to is already used by an existing
catalog object (see `CatalogObjectType`)"
Made-with: Cursor
Model: claude-4.6-sonnet-medium-thinking
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]