huaxingao commented on code in PR #15180:
URL: https://github.com/apache/iceberg/pull/15180#discussion_r2868311011
##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -4181,6 +4259,38 @@ 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:
+ type: object
+ description: >
+ The function's full spec/metadata document, returned inline as
JSON.
+
+
+ The structure of this JSON document is defined by the Iceberg UDF
spec.
+ The spec format version is identified by the `format-version`
field in the returned metadata.
+ additionalProperties: true
+ config:
+ type: object
+ additionalProperties:
+ type: string
Review Comment:
I’ll keep config for now to match the `loadTable/loadView` response shape.
Let’s wait for @nastra’s context on the intent of config in `LoadViewResult`.
--
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]