flyrain commented on code in PR #15180:
URL: https://github.com/apache/iceberg/pull/15180#discussion_r2908690922


##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -4181,6 +4259,228 @@ components:
           items:
             $ref: '#/components/schemas/Namespace'
 
+    LoadFunctionResult:
+      description: |
+        Result returned when a function is loaded from the catalog.
+
+
+        The function metadata JSON is returned in the `metadata` field. The 
location of the metadata
+        file is returned in the `metadata-location` field.
+
+
+        The `config` map returns function-specific configuration for accessing 
the function's resources,
+        including any required credentials or client configuration overrides.
+      type: object
+      required:
+        - metadata-location
+        - metadata
+      properties:
+        metadata-location:
+          type: string
+        metadata:
+          $ref: '#/components/schemas/UdfMetadata'
+        config:
+          type: object
+          additionalProperties:
+            type: string
+
+    UdfMetadata:
+      description: |
+        Portable UDF metadata format.
+
+
+        Each function is represented by a self-contained metadata file. The 
`format-version` field
+        identifies the UDF metadata format.
+      type: object
+      required:
+        - function-uuid
+        - format-version
+        - definitions
+        - definition-log
+      properties:
+        function-uuid:
+          type: string
+          description: A UUID that identifies this UDF, generated once at 
creation.
+        format-version:
+          type: integer
+          description: UDF specification format version (must be 1).
+          enum: [1]
+        definitions:
+          type: array
+          description: List of function definition entities.
+          items:
+            $ref: '#/components/schemas/UdfDefinition'
+        definition-log:
+          type: array
+          description: History of versions within the function's definitions.
+          items:
+            $ref: '#/components/schemas/UdfDefinitionLogEntry'
+        location:
+          type: string
+          description: The function's base location; used to create metadata 
file locations.
+          nullable: true

Review Comment:
   Do we need to mark them nullable as they are optional anyways?



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

Reply via email to