Custom function management method, electronic device and computer readable storage medium

The cloud-native deployment of a custom function management service in a data table improves the convenience of managing and using custom functions by classifying and persisting them, enabling efficient querying and calling without repeated configuration.

CN118820247BActive Publication Date: 2024-12-17ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411307348.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2024-12-17
Estimated Expiration
2044-09-19

AI Technical Summary

Technical Problem

Conventional custom function management is inconvenient due to redundancy and complexity, necessitating improved management and use convenience.

Method used

A custom function management method deployed in a cloud native cluster that persists and classifies function information in a data table by name and version number, enabling efficient querying and calling of custom functions without repeated configuration.

Benefits of technology

The management of custom functions is improved by deploying the management service in a cloud-native environment, has good isolation and scalability, and can easily connect to the data processing platform, and the management service is deployed in the cloud native cluster, allowing for efficient querying and calling of custom functions, reducing the need for repeated configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820247B_ABST
    Figure CN118820247B_ABST
Patent Text Reader

Abstract

The present application discloses a method for managing a custom function, an electronic device, and a computer-readable storage medium. The method for managing a custom function is applied to a management service, and the management service is deployed in a cloud native cluster, including: in response to obtaining a custom function registered by a use object request, persisting the function information of the custom function to a data table; wherein the function information at least includes a function name, a version number, and function parameters, and the function information of multiple custom functions in the data table is classified by function name and version number; in response to obtaining query information corresponding to the custom function, obtaining target feedback information under all table structures associated with the query information from the data table; wherein the query information at least includes a function name, and the target feedback information includes function parameters under the corresponding version number. In the above manner, the present application can improve the convenience of managing and using custom functions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a custom function management method, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the advent of the data age, data processing tasks are becoming increasingly large and complex. Large data processing tasks usually involve multiple components of the platform, each component corresponds to multiple custom functions, and each custom function involves various function parameters. Therefore, a large number of custom functions are extremely redundant. For the user, the configuration and use of conventional custom functions are extremely inconvenient in management and use. In view of this, how to improve the convenience of custom function management and use has become an urgent problem to be solved. Summary of the invention

[0003] The main technical problem solved by the present application is to provide a custom function management method, an electronic device and a computer-readable storage medium, which can improve the convenience of custom function management and use.

[0004] To solve the above technical problems, the first aspect of the present application provides a custom function management method, which is applied to a management service, and the management service is deployed in a cloud native cluster, including: in response to obtaining a custom function registered using an object request, persisting the function information of the custom function to a data table; wherein the function information at least includes a function name, a version number and function parameters, and the function information of multiple custom functions is classified in the data table according to the function name and the version number; in response to obtaining query information corresponding to the custom function, obtaining target feedback information under all table structures associated with the query information from the data table; wherein the query information at least includes the function name, and the target feedback information includes the function parameters under the corresponding version number.

[0005] To solve the above technical problems, the second aspect of the present application provides an electronic device, which includes: a memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method described in the first aspect.

[0006] In order to solve the above technical problem, the third aspect of the present application provides a computer-readable storage medium on which program data is stored. When the program data is executed by a processor, the method described in the first aspect is implemented.

[0007] In the above scheme, after the management service deployed in the cloud native cluster obtains the custom function registered by the object request, the function information of the custom function is obtained and the function information is persisted to the data table, wherein the obtained function information at least includes the function name, version number and function parameters, and the function information of multiple custom functions is included in the data table, and the function information of multiple custom functions is classified by function name and version number in the data table, so that multiple custom functions can be pre-registered and persisted in the data table for classification, so as to facilitate the query and call of the custom function. After obtaining the query information corresponding to the custom function, the data table is queried based on the query information, and the function parameters under the corresponding version number in all table structures associated with the query information are obtained, and the obtained function parameters are used as the target feedback information, so as to realize the call of the custom function, wherein the query information at least includes the function name, so that when calling, the function parameters matching all version numbers corresponding to the same function name can be fed back based on the function name, and at least part of the function parameters under a certain function name can also be fed back, so as to facilitate the call as required. Therefore, the management service is used to persist and classify the registered custom functions, and the management service is deployed in the cloud native cluster. The management service runs based on the cloud native environment, has good isolation and scalability, and can easily connect to objects that can input query information, and then use the query information to make query calls, avoiding the need to configure custom functions each time they are used, and improving the convenience of managing and using custom functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0009] Figure 1 It is a flowchart of an implementation method of a custom function management method of the present application;

[0010] Figure 2 It is a flowchart of another implementation method of the custom function management method of the present application;

[0011] Figure 3 It is a flowchart of another implementation method of the custom function management method of the present application;

[0012] Figure 4 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0013] Figure 5 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0014] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them, and different implementation methods can be adaptively combined. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0015] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.

[0016] The custom function management method provided in this application is applied to a management service, and the management service is deployed in a cloud native cluster, wherein the management service can receive and query custom functions for unified management of custom functions. Therefore, the execution subject corresponding to the custom function management method provided in this application is a processing unit that can call the management service.

[0017] See also Figure 1 , Figure 1 It is a flowchart of an implementation method of a custom function management method of the present application, and the method includes:

[0018] S101: In response to obtaining a custom function registered using an object request, persisting function information of the custom function to a data table; wherein the function information includes at least a function name, a version number, and function parameters, and the function information of multiple custom functions is classified in the data table according to the function name and version number.

[0019] Specifically, when the management service deployed in the cloud native cluster obtains the custom function registered using the object request, it obtains the function information of the custom function and persists the function information to a data table, wherein the obtained function information includes at least the function name, version number and function parameters, and the data table includes function information of multiple custom functions, and the function information of multiple custom functions is classified in the data table according to the function name and version number.

[0020] It can be understood that when the management service is deployed in a cloud native cluster, the cloud native cluster is configured with a corresponding container for the management service, and the management service runs in the corresponding container. Multiple custom functions can be pre-registered with the management service and persisted in the data table for classification to facilitate query and call of the custom functions.

[0021] Optionally, the function information may include index information of associated functions of the user-defined function in addition to the function name, version number and function parameters, wherein the associated functions of the user-defined function can be searched using the index information.

[0022] In one application method, in response to obtaining a custom function registered by using an object request, function information of the custom function is persisted to a data table, including: obtaining registration information uploaded when the object is requested to be registered, parsing the registration information, obtaining function information related to the custom function, and transmitting the function information to the data table for persistent storage, wherein each custom function in the data table is classified according to function name and version number, and function parameters of the custom function are classified according to parameter type, and the relevant information is persisted.

[0023] In another application method, in response to obtaining a custom function registered using an object request, the function information of the custom function is persisted to a data table, including: obtaining a registration request uploaded when the object request is registered, verifying the validity of the registration request, and obtaining the function information of the custom function carried by the registration request after the verification passes, allocating a storage location in the data table to the corresponding custom function based on the function name and version number included in the function information, and persisting the function information to the corresponding storage location.

[0024] In some implementation scenarios, in response to obtaining a custom function registered by requesting a usage object, function information of the custom function is persisted to a data table, including: in response to obtaining a custom function registered by requesting a usage object, obtaining a registration request that matches the custom function, and obtaining object information of the usage object and calling permissions of the custom function from the registration request; based on the object information and calling permissions, persisting the function information of the custom function to the data table.

[0025] Specifically, after obtaining the custom function registered by the object request, obtain the registration request matching the custom function, parse the registration request, obtain the object information of the object used, and the calling permission of the custom function from the registration request, wherein the calling permission includes restricted calling and shared calling.

[0026] Furthermore, based on the object information and calling permissions, the function information of the custom function is persisted to the data table, so that the user object of the registered custom function and the calling permissions when the custom function is called can be clearly defined, so that the custom function can trace the user object when requesting registration and clarify the calling permissions of the custom function, ultimately improving the reliability and security of custom function management and calling.

[0027] It should be noted that based on the object information and calling permissions, the function information of the custom function is persisted to the data table, including: in response to the calling permission being restricted calling, the object information and the function information of the custom function are persisted to the data table, and the object information is used as a query condition; in response to the calling permission being shared calling, the function information of the custom function is persisted to the data table, and the function name included in the function information is used as a query condition.

[0028] Specifically, when the calling permission is restricted, the object information and the function information of the custom function are persisted to the data table, and the object information is used as the query condition of the corresponding custom function. In other words, the object information is used as the condition for being able to call the corresponding custom function, thereby restricting the calling of other objects outside the corresponding user object, so as to improve the security of custom function calling.

[0029] In addition, when the calling permission is shared calling, the function information of the custom function will be persisted to the data table, and the function name included in the function information will be used as the query condition. That is to say, when any user provides the function name during the query, the corresponding custom function can be called, thereby improving the convenience of sharing custom functions.

[0030] In a specific implementation scenario, the control layer (controller) of the management service is used to interact with the user object, obtain the registration request when the user object requests to register a custom function, obtain the object information of the user object from the registration request, verify the object information of the user object, and prompt an exception message when the verification fails. After the verification is successful, the information carried by the registration request is transmitted to the service layer (service) and data access object layer (Data AccessObject, DAO) of the management service for parsing, and the function information and calling permissions are obtained. The function information is transmitted to the data transfer object layer (Data Transfer Object, DTO) of the management service, so that the function information is persisted to the data table based on the object information and calling permissions.

[0031] Optionally, the type of the data table may be a MYSQL data table or other types of data tables, and this application does not impose any specific restrictions on this.

[0032] S102: In response to obtaining query information corresponding to the custom function, obtaining target feedback information under all table structures associated with the query information from the data table; wherein the query information at least includes the function name, and the target feedback information includes function parameters under the corresponding version number.

[0033] Specifically, after obtaining the query information corresponding to the custom function, the data table is queried based on the query information to obtain the function parameters under the corresponding version number in all table structures associated with the query information, and the obtained function parameters are used as the target feedback information to realize the call of the custom function, wherein the query information at least includes the function name, so that when calling, the function parameters matching all version numbers corresponding to the same function name can be fed back based on the function name, and at least part of the function parameters under a certain function name can also be fed back to facilitate calling as required.

[0034] In one application method, the custom functions in the data table correspond to their respective storage locations, query information related to the custom functions is obtained, the query position in the data table indicated by the query information is determined based on the query information, and the function parameters under all table structures associated with the query information are obtained starting from the query position in the data table, and the obtained function parameters are used as target feedback information.

[0035] In another application method, the custom functions in the data table correspond to their respective storage levels, query information related to the custom function is obtained, the query information is verified, and after the verification, the query level in the data table that the query information matches is determined, and the function parameters of all table structures under the query level in the corresponding custom function are obtained from the data table, and the obtained function parameters are used as target feedback information.

[0036] It is understandable that the management service is used to persist and classify the registered custom functions, and the management service is deployed in a cloud-native cluster. The management service runs based on the cloud-native environment, has good isolation and scalability, and can easily connect to objects that can input query information, and then use the query information to make query calls, avoiding the need to configure custom functions each time they are used, and improving the convenience of managing and using custom functions.

[0037] In some implementation scenarios, query information is triggered by the user object, and the control layer interacts with the user object to obtain query information corresponding to the custom function requested by the user object, verify the query information of the user object, and prompt an exception message when the verification fails. After the verification is successful, the query information is transmitted to the service layer, and the query level indicated by the query information is determined at the service layer, and the function parameters in the corresponding custom function under the query level are obtained.

[0038] In some implementation scenarios, the query information is triggered by the data processing platform. The data processing platform sends the query information when it needs to call a custom function, transmits the query information to the service layer, determines the query position in the data table indicated by the query information at the service layer, and obtains the function parameters under all table structures associated with the query information starting from the query position in the data table.

[0039] Optionally, the function parameters include at least the configuration information that the custom function depends on, the function input and output parameter structure information, the function additional information and the calling algorithm configuration information.

[0040] In the above scheme, after the management service deployed in the cloud native cluster obtains the custom function registered by the object request, the function information of the custom function is obtained and the function information is persisted to the data table, wherein the obtained function information at least includes the function name, version number and function parameters, and the function information of multiple custom functions is included in the data table, and the function information of multiple custom functions is classified by function name and version number in the data table, so that multiple custom functions can be pre-registered and persisted in the data table for classification, so as to facilitate the query and call of the custom function. After obtaining the query information corresponding to the custom function, the data table is queried based on the query information, and the function parameters under the corresponding version number in all table structures associated with the query information are obtained, and the obtained function parameters are used as the target feedback information, so as to realize the call of the custom function, wherein the query information at least includes the function name, so that when calling, the function parameters matching all version numbers corresponding to the same function name can be fed back based on the function name, and at least part of the function parameters under a certain function name can also be fed back, so as to facilitate the call as required. Therefore, the management service is used to persist and classify the registered custom functions, and the management service is deployed in the cloud native cluster. The management service runs based on the cloud native environment, has good isolation and scalability, and can easily connect to objects that can input query information, and then use the query information to make query calls, avoiding the need to configure custom functions each time they are used, and improving the convenience of managing and using custom functions.

[0041] See also Figure 2 , Figure 2 : is a flow chart of another embodiment of the method for managing a custom function of the present application, the method comprising:

[0042] S201: In response to obtaining a custom function registered using an object request, persisting function information of the custom function to a data table; wherein the function information at least includes a function name, a version number, and function parameters, and the function information of multiple custom functions is classified in the data table according to the function name and version number.

[0043] Specifically, after obtaining the custom function registered using the object request, the function information of the custom function is obtained, the function information of the custom function is persisted to the data table, and the function information is classified in the data table according to the function name and version number. For related content, please refer to the previous embodiment, and this application will not repeat it here.

[0044] S202: In response to obtaining query information corresponding to the custom function, determine the object information of the use object from the query information, and determine the query level in the data table matched by the query information; wherein the query levels of the function name, version number and function parameters decrease in sequence.

[0045] Specifically, the query information is triggered by the usage object. When the query information corresponding to the custom function is obtained, the object information of the usage object is obtained from the query information, and the query level in the data table matched by the query information is determined from the query information.

[0046] It can be understood that the query levels of the function name, version number and function parameters included in the function information decrease successively. When a function parameter corresponds to multiple parameter types and there are multiple layers of parameters with decreasing levels under each parameter type, the query levels corresponding to the corresponding parameters decrease successively.

[0047] S203: Based on the object information and the query level, the function parameters of all table structures under the query level are obtained from the data table to obtain target feedback information.

[0048] Specifically, based on the object information and query level, the function parameters of all table structures below the query level in the corresponding custom function are obtained from the data table, and the obtained function parameters are used as the target feedback information. Among them, the query of multiple table structure information will involve the number of interactions with the database. In order to avoid the impact of too many interactions on query performance, the function parameters of all table structures below the query level are queried, which can effectively reduce the impact on performance.

[0049] It can be understood that after obtaining the object information, the object information can be verified to determine whether the currently requested object is a supported object. The object information can also be used as a query condition for restricting the call of custom functions, thereby determining whether the current object can call the corresponding custom function, thereby improving the security of custom function query and call.

[0050] For ease of explanation, taking the query information including function name and version number as an example, determine the version number indicated by the query information in the corresponding function name, use the version number as the query level, obtain the function parameters under all table structures below the query level from the data table, and use the obtained function parameters as the target feedback information.

[0051] In some implementation scenarios, based on object information and query level, function parameters under all table structures below the query level are obtained from a data table to obtain target feedback information, including: based on object information and query level, generating a first structured query statement that matches the data table; using the first structured query statement, obtaining function parameters under all table structures below the query level from the data table to obtain target feedback information.

[0052] Specifically, based on object information and query level, a first structured query statement matching the data table is generated, so that the first structured query statement can be used to query all table structures under the query level in the data table and extract function parameters, and obtain the function parameters under all table structures under the query level in the corresponding custom function, thereby reducing the number of interactions with the database, thereby ensuring the integrity of parameter acquisition while reducing the impact on performance.

[0053] Optionally, the first structured query statement is predefined with a statement template, and the first structured query statement can be generated after obtaining the object information and the query level, thereby efficiently feeding back the query information triggered by the object.

[0054] In this embodiment, the query information is triggered by the use object. After the query information corresponding to the custom function is obtained, the object information of the use object is obtained from the query information, and the query level in the data table matched by the query information is determined from the query information. Based on the object information and the query level, the function parameters of all table structures under the query level in the corresponding custom function are obtained from the data table, and the obtained function parameters are used as the target feedback information. Among them, the query of multiple table structure information will involve the number of interactions with the database. In order to avoid the impact of too many interactions on the query performance, the function parameters under all table structures under the query level are queried, which can effectively reduce the impact on performance.

[0055] See also Figure 3 , Figure 3 It is a flowchart of another implementation method of the user-defined function management method of the present application, and the method includes:

[0056] S301: In response to obtaining a custom function registered using an object request, persisting function information of the custom function to a data table; wherein the function information includes at least a function name, a version number, and function parameters, and the function information of multiple custom functions is classified in the data table by function name and version number.

[0057] Specifically, after obtaining the custom function registered using the object request, the function information of the custom function is obtained, the function information of the custom function is persisted to the data table, and the function information is classified in the data table according to the function name and version number. For related content, please refer to the previous embodiment, and this application will not repeat it here.

[0058] S302: In response to obtaining query information corresponding to the custom function, obtain a callback function that matches the query information on the data processing platform, and use the callback function to determine a query object in the data table indicated by the query information; wherein the query object corresponds to a version number or a function parameter.

[0059] Specifically, the cloud native cluster is deployed with a data processing platform, the management service is connected to the data processing platform, the query information is triggered by the data processing platform, and when the query information corresponding to the custom function is obtained, the callback function matched by the data processing platform for the query information is obtained, and the callback function is used to obtain the query object in the data table indicated by the query information from the query information. Among them, the data processing platform interacts with the management service through the callback function, and the callback function can be used to trigger the data processing platform to call the pre-registered custom function to the management service, thereby ensuring that the data processing platform can call the custom function from the management service to complete the business tasks of the data processing platform.

[0060] It is understandable that the data processing platform usually needs to call a complete custom function, so the query information triggered by the data processing platform usually indicates a certain version of the custom function as the query object.

[0061] It should be noted that the scalability of the cloud-native cluster provides convenience for the connection between the management service and the data processing platform. The management service and the data processing platform are connected through callback functions. The callback function is created when the business task of the data processing platform is started, and the triggering conditions of the callback function include that the data processing platform has not registered the custom function required by the business task, and the business task matches the connection address of the management service.

[0062] Specifically, the callback function is automatically created when the business task of the data processing platform is started to ensure that it can be efficiently called when it is needed. The triggering conditions of the callback function need to simultaneously meet the custom functions required by the unregistered business tasks of the data processing platform and the business tasks match the connection address of the management service. Therefore, when the callback function is needed to interact with the management service, the callback function can be used to obtain the custom function pre-registered and persisted in the data table from the management service.

[0063] S303: Based on the query object, obtain function parameters under all table structures corresponding to the query object from the data table to obtain target feedback information.

[0064] Specifically, the location of the query object is determined in the data table, and the function parameters under all table structures corresponding to the query object are obtained from the data table. The obtained function parameters are used as target feedback information so that the data processing platform can call the required custom function, avoiding the need to register the custom function every time a business task is executed.

[0065] In some implementation scenarios, based on the query object, function parameters under all table structures corresponding to the query object are obtained from the data table to obtain target feedback information, including: based on the query object, generating a second structured query statement that matches the data table; using the second structured query statement, obtaining function parameters under all table structures corresponding to the query object from the data table to obtain target feedback information.

[0066] Specifically, based on the query object, a second structured query statement matching the data table is generated, so that the second structured query statement can be used to query all table structures corresponding to the query object in the data table and extract function parameters, thereby obtaining the function parameters under all table structures corresponding to the query object, reducing the number of interactions with the database, thereby ensuring the integrity of parameter acquisition while reducing the impact on performance.

[0067] It can be understood that the effects achieved by the entire data processing platform and management service adaptation process include: the user only needs to manually register all the function information of the corresponding custom function to the management service in advance, and the function information will be kept in the data table all the time, and different tasks can be queried and used. At the same time, the address information of the management service is configured in the business tasks of the data processing platform. In this way, when the business tasks are subsequently executed, if the platform fails to find the custom function required for the business task and obtain the address information, it will interact with the management service through the callback function and call the custom function from the data table, thereby improving the data processing efficiency of the data processing platform.

[0068] For the sake of explanation, taking the data processing platform based on the distributed processing engine Flink as an example, the Flink end needs to make internal source code modifications and add a callback function. This callback function will be automatically created when the Flink business task starts, and it can be triggered by simply passing in the object identifier of the corresponding custom function. The callback function mainly interacts with the management service catalog service, obtains the function information of the custom function that has been pre-registered in the management service, and then automatically executes the create function statement to register the function inside the task. Therefore, after adapting Flink, the redundancy of task development can be reduced, especially in tasks that rely on more user-defined functions.

[0069] In this embodiment, the query information is triggered by the data processing platform, and a callback function that the data processing platform matches the query information is obtained. The callback function is used to obtain the query object in the data table indicated by the query information from the query information, and the location of the query object in the data table is determined. The function parameters under all table structures corresponding to the query object are obtained from the data table, and the obtained function parameters are used as target feedback information so that the data processing platform can call the required custom function to avoid the need to register the custom function each time a business task is executed.

[0070] See also Figure 4 , Figure 4 It is a structural diagram of an embodiment of an electronic device of the present application, wherein the electronic device 40 includes a memory 401 and a processor 402 coupled to each other, wherein the memory 401 stores program data (not shown), and the processor 402 calls the program data to implement the method in any of the above embodiments. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0071] See also Figure 5 , Figure 5 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. The computer-readable storage medium 50 stores program data 500. When the program data 500 is executed by a processor, the method in any of the above embodiments is implemented. For descriptions of related contents, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0072] It should be noted that the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present implementation scheme.

[0073] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0074] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0075] The above description is only an implementation method of the present application, and does not limit the protection scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the protection scope of the present application.

Claims

1. A method for managing a custom function, characterized in that: Applied to a management service, the management service is deployed in a cloud native cluster, the method includes: In response to obtaining the user-defined function registered by the object request, persisting the function information of the user-defined function to a data table; wherein the function information at least includes a function name, a version number and a function parameter, and the function information of a plurality of the user-defined functions is classified in the data table according to the function name and the version number; In response to obtaining the query information corresponding to the user-defined function, obtaining target feedback information under all table structures associated with the query information from the data table; wherein the query information at least includes the function name, and the target feedback information includes the function parameters under the corresponding version number; The cloud native cluster is deployed with a data processing platform, the management service is connected to the data processing platform, and when the query information is triggered by the data processing platform, the response to obtaining the query information corresponding to the custom function, obtaining target feedback information under all table structures associated with the query information from the data table, includes: In response to obtaining the query information corresponding to the custom function, obtaining a callback function matched by the data processing platform for the query information, and using the callback function to determine the query object in the data table indicated by the query information; wherein the query object corresponds to the version number or the function parameter; the callback function is created when the business task of the data processing platform is started, and the triggering condition of the callback function includes that the data processing platform has not registered the custom function required by the business task, and the business task matches the connection address of the management service; Based on the query object, the target feedback information under all table structures corresponding to the query object is obtained from the data table.

2. The method according to claim 1, characterized in that In response to obtaining the user-defined function registered by the object request, persisting the function information of the user-defined function to the data table, comprises: In response to obtaining the user-defined function registered by the use object request, obtaining a registration request matching the user-defined function, and obtaining object information of the use object and a calling permission of the user-defined function from the registration request; Based on the object information and the calling permission, the function information of the user-defined function is persisted to the data table.

3. The method according to claim 2, characterized in that The method of persisting the function information of the user-defined function to the data table based on the object information and the calling permission includes: In response to the calling permission being restricted calling, persisting the object information and the function information of the user-defined function to the data table, and using the object information as a query condition; In response to the calling permission being a shared call, the function information of the user-defined function is persisted to the data table, and the function name included in the function information is used as a query condition.

4. The method according to claim 1, characterized in that When the query information is triggered by a usage object, in response to obtaining the query information corresponding to the user-defined function, obtaining target feedback information under all table structures associated with the query information from the data table includes: In response to obtaining the query information corresponding to the user-defined function, determining the object information of the use object from the query information, and determining the query level in the data table matched by the query information; wherein the query levels of the function name, the version number, and the function parameters are sequentially decreased; Based on the object information and the query level, function parameters under all table structures below the query level are acquired from the data table to obtain the target feedback information.

5. The method according to claim 4, characterized in that The acquiring, based on the object information and the query level, function parameters under all table structures under the query level from the data table to obtain the target feedback information includes: Based on the object information and the query level, generate a first structured query statement matching the data table; The first structured query statement is used to obtain function parameters under all table structures below the query level from the data table to obtain the target feedback information.

6. The method according to claim 1, characterized in that The step of acquiring, based on the query object, function parameters under all table structures corresponding to the query object from the data table to obtain the target feedback information includes: Based on the query object, generate a second structured query statement matching the data table; The second structured query statement is used to obtain function parameters under all table structures corresponding to the query object from the data table to obtain the target feedback information.

7. An electronic device, characterized in that: include: A memory and a processor coupled to each other, wherein the memory stores program data, and the processor calls the program data to execute the method according to any one of claims 1 to 6.

8. A computer-readable storage medium having program data stored thereon, characterized in that: When the program data is executed by a processor, the method according to any one of claims 1 to 6 is implemented.