XiaoHongbo-Hope commented on code in PR #7559:
URL: https://github.com/apache/paimon/pull/7559#discussion_r3026966500


##########
paimon-python/pypaimon/api/api_response.py:
##########
@@ -327,3 +328,213 @@ def __init__(self, snapshot: Optional[TableSnapshot] = 
None):
 
     def get_snapshot(self) -> Optional[TableSnapshot]:
         return self.snapshot
+
+
+@dataclass
+class GetFunctionResponse(AuditRESTResponse):
+    """Response for getting a function."""
+    FIELD_UUID = "uuid"
+    FIELD_NAME = "name"
+    FIELD_INPUT_PARAMS = "inputParams"
+    FIELD_RETURN_PARAMS = "returnParams"
+    FIELD_DETERMINISTIC = "deterministic"
+    FIELD_DEFINITIONS = "definitions"
+    FIELD_COMMENT = "comment"
+    FIELD_OPTIONS = "options"
+
+    uuid: Optional[str] = json_field(FIELD_UUID, default=None)
+    name: Optional[str] = json_field(FIELD_NAME, default=None)
+    input_params: Optional[List] = json_field(FIELD_INPUT_PARAMS, default=None)

Review Comment:
   > It is a `List[dict]` or `List[DataField]`?
   
   Update it as `List[DataField]`



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