mchades opened a new pull request, #9566:
URL: https://github.com/apache/gravitino/pull/9566

   ### What changes were proposed in this pull request?
   
   This PR implements the server-side REST API for User-Defined Functions 
(UDFs), including:
   
   - **DTO classes**: `FunctionDTO`, `FunctionDefinitionDTO`, 
`FunctionParamDTO`, `FunctionColumnDTO`, `FunctionImplDTO` (with `JavaImplDTO`, 
`PythonImplDTO`, `SQLImplDTO` subclasses), `FunctionResourcesDTO`
   - **Request/Response classes**: `FunctionRegisterRequest`, 
`FunctionUpdateRequest`, `FunctionUpdatesRequest`, `FunctionResponse`
   - **REST endpoint**: `FunctionOperations` with register, get (with optional 
version), update, and delete operations
   - **Exception handlers**: Added function-related exception handlers
   - **Utility methods**: Added namespace and identifier validation for 
functions
   
   ### Why are the changes needed?
   
   To provide server-side REST API support for managing UDFs in Gravitino.
   
   Fix: #9529
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, this PR adds new REST API endpoints for UDF management:
   - `POST /metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/functions` 
- Register a function
   - `GET 
/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/functions/{function}` 
- Get a function (with optional version query param)
   - `PUT 
/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/functions/{function}` 
- Update a function
   - `DELETE 
/metalakes/{metalake}/catalogs/{catalog}/schemas/{schema}/functions/{function}` 
- Delete a function
   
   ### How was this patch tested?
   
   - Added comprehensive unit tests for all DTO classes (`TestFunctionDTO`)
   - Added comprehensive unit tests for REST endpoint (`TestFunctionOperations`)


-- 
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]

Reply via email to