emptyOVO commented on PR #11350:
URL: https://github.com/apache/inlong/pull/11350#issuecomment-2415951042

   For test, Request and Response as follows
   ```
   MockHttpServletRequest:
        HTTP Method = POST
   Request URI = /openapi/transform / function / list
   Parameters = {}
   Headers = [Content - Type: "application/json", Accept: "application/json", 
Content - Length: "97"]
   Body = < no character encoding set >
        Session Attrs = {}
   
   Handler:
        Type = 
org.apache.inlong.manager.web.controller.openapi.OpenStreamTransformController
   Method = 
org.apache.inlong.manager.web.controller.openapi.OpenStreamTransformController# 
listDocs(TransformFunctionDocRequest)
   
   Async:
        Async started = false
   Async result = null
   
   Resolved Exception:
        Type = null
   
   ModelAndView:
        View name = null
   View = null
   Model = null
   
   FlashMap:
        Attributes = null
   
   MockHttpServletResponse:
        Status = 200
   Error message = null
   Headers = [Content - Type: "application/json"]
   Content type = application / json
   Body = {
        "success": true,
        "errMsg": null,
        "data": {
                "list": [{
                        "name": "abs(Numeric numeric)\r\n",
                        "explanation": "- Return \"\" if 'numeric' is 
NULL;\r\n- Return the absolute value of 'numeric'.\r\n",
                        "examples": "abs(2) = 2\r\nabs(-4.25) = 4.25\r\n"
                }, {
                        "name": "acos(Numeric numeric)\r\n",
                        "explanation": "- Return \"\" if 'numeric' is 
NULL;\r\n- Return the arc cosine of 'numeric'.\r\n",
                        "examples": "acos(1) = 0.0\r\nacos(0) = 
1.5707963267948966\r\nacos(-1) = 3.141592653589793\r\n"
                }, {
                        "name": "acosd(Numeric numeric)\r\n",
                        "explanation": "- Return \"\" if 'numeric' is 
NULL;\r\n- Return the arc cosine of 'numeric' in units of degrees.\r\n",
                        "examples": "acosd(1) = 0.0\r\nacosd(0) = 
90.0\r\nacosd(-1) = 180.0\r\n"
                }, {
                        "name": "asin(Numeric numeric)\r\n",
                        "explanation": "- Return \"\" if 'numeric' is 
NULL;\r\n- Return the arc sine of 'numeric' in units of degrees.\r\n",
                        "examples": "asin(0.5) = 0.5235987755982989\r\nasin(0) 
= 0.0\r\nasin(-0.5) = -0.5235987755982989\r\n"
                }, {
                        "name": "asind(Numeric numeric)\r\n",
                        "explanation": "- Return \"\" if 'numeric' is 
NULL;\r\n- Return the arc sine of 'numeric' in units of degrees.\r\n",
                        "examples": "asind(0.5) = 
30.000000000000004\r\nasind(0) = 0.0\r\nasind(-0.5) = -30.000000000000004\r\n"
                }, {
                        "name": "atan(Numeric numeric)\r\n",
                        "explanation": "- Return \"\" if 'numeric' is 
NULL;\r\n- Return the arc tangent of 'numeric'.\r\n",
                        "examples": "atan(1) = 0.7853981633974483\r\natan(0) = 
0.0\r\natan(-1) = -0.7853981633974483\r\n"
                }, {
                        "name": "atan2(Numeric numeric)\r\n",
                        "explanation": "Return \"\" if 'numericx' or 'numericy' 
is NULL;\r\nReturn the arc tangent of a coordinate ('numericx', 
'numericy').\r\n",
                        "examples": "atan2(1, 1) = 
0.7853981633974483\r\natan2(1, 0) = 1.5707963267948966\r\natan2(0, -1) = 
3.141592653589793\r\n"
                }, {
                        "name": "atan2d(Numeric numericx, Numeric 
numericy)\r\n",
                        "explanation": "- Return \"\" if 'numericx' or 
'numericy' is NULL;\r\n- Return inverse tangent of 'numericy'/'numericx', 
result in degrees.\r\n",
                        "examples": "atan2d(1, 1) = 45.0\r\natan2d(1, 0) = 
90.0\r\natan2d(0, -1) = 180.0\r\n"
                }, {
                        "name": "atand(Numeric numeric)\r\n",
                        "explanation": "- Return \"\" if 'numeric' is 
NULL;\r\n- Return the arc tangent of 'numeric' in units of degrees.\r\n",
                        "examples": "atand(1) = 45.0\r\natand(0) = 
0.0\r\natand(-1) = -45.0\r\n"
                }, {
                        "name": "bin(Integer integer)\r\n",
                        "explanation": "- Return \"\" if 'integer' is 
NULL;\r\n- Return a string representation of 'integer' in binary format.\r\n",
                        "examples": "bin(4) = 100\r\n"
                }],
                "total": 185,
                "pageSize": 10,
                "pageNum": 1
        }
   }
   ```


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