Skip to content

[#9540] docs: add OpenAPI specification for function/UDF operations#9928

Merged
jerryshao merged 1 commit intomainfrom
issue-9540
Feb 11, 2026
Merged

[#9540] docs: add OpenAPI specification for function/UDF operations#9928
jerryshao merged 1 commit intomainfrom
issue-9540

Conversation

@mchades
Copy link
Contributor

@mchades mchades commented Feb 10, 2026

What changes were proposed in this pull request?

Add OpenAPI specification (OAS) for function/UDF operations by creating docs/open-api/functions.yaml and updating docs/open-api/openapi.yaml.

The new OAS covers:

  • 5 REST endpoints: list (GET with details query param), register (POST), get (GET), alter (PUT), drop (DELETE)
  • Data model schemas: Function, FunctionDefinition, FunctionParam, FunctionColumn, FunctionImpl (polymorphic with SQL/Java/Python subtypes via language discriminator), FunctionResources
  • Request schemas: FunctionRegisterRequest, FunctionUpdatesRequest, and 6 FunctionUpdateRequest subtypes (updateComment, addDefinition, removeDefinition, addImpl, updateImpl, removeImpl) using @type discriminator
  • Response schemas: FunctionResponse, FunctionListResponse
  • Examples: Scalar function and table function register/response examples with multiple implementation languages

Also updates AGENTS.md to document the ./gradlew :docs:build command for OpenAPI validation.

Why are the changes needed?

The function/UDF REST API is fully implemented in Java but lacks OpenAPI documentation. This OAS definition is needed for API documentation, client code generation, and API contract validation.

Fix: #9540

Does this PR introduce any user-facing change?

No. This is a documentation-only change adding OpenAPI specification files.

How was this patch tested?

Validated by running ./gradlew :docs:build which includes Redocly CLI linting — passed with no errors.

Add OAS definition for function CRUD operations including:
- List functions (with optional details query param)
- Register function
- Get function
- Alter function (with 6 update request subtypes)
- Drop function

Schemas cover Function, FunctionDefinition, FunctionParam,
FunctionColumn, FunctionImpl (SQL/Java/Python), FunctionResources,
and all request/response models with examples for both scalar
and table function types.

Also update AGENTS.md with OpenAPI docs validation command.
@jerryshao jerryshao merged commit 567df78 into main Feb 11, 2026
23 checks passed
@mchades mchades deleted the issue-9540 branch February 11, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Subtask] add OAS for UDF operations

2 participants

Comments