REST spec: Add create/drop/exists function endpoints to OpenAPI spec - #17966
Open
huaxingao wants to merge 1 commit into
Open
REST spec: Add create/drop/exists function endpoints to OpenAPI spec#17966huaxingao wants to merge 1 commit into
huaxingao wants to merge 1 commit into
Conversation
wombatu-kun
reviewed
Sep 7, 2026
| 204: | ||
| description: Success, no content | ||
| 400: | ||
| description: Bad Request |
Contributor
There was a problem hiding this comment.
functionExists declares no 403 while listFunctions, loadFunction, createFunction and dropFunction all do, and it leaves 400/401/404 as bare descriptions while $ref-ing the JSON-bodied 419/503/5XX responses in the same block. Mirror tableExists: $ref BadRequestErrorResponse, UnauthorizedResponse and ForbiddenResponse, and return IcebergErrorResponse with the NoSuchFunctionError example on 404.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #15180, which added listFunctions and loadFunction. This adds
the remaining function lifecycle operations that do not require a metadata
update model:
createFunction takes a new CreateFunctionRequest carrying the function name
and its definitions. The server assigns function-uuid, format-version and
definition-log, so those are not part of the request. It returns the loaded
function so clients do not need a follow-up load to learn the assigned UUID
and metadata location.
Errors use IcebergErrorResponse to match the existing function endpoints, and
a FunctionAlreadyExistsError example is added for the 409 case.
updateFunction is left for a follow-up, since committing changes to a function
requires a metadata update and requirement model that the UDF spec does not
define yet. Rename is also deferred: the function endpoints use
CatalogObjectIdentifier while RenameTableRequest uses TableIdentifier, and
which shape rename should use is worth settling separately.