Method and system for arranging data processing and analysis process
By defining and managing the data and control ports of operators in the data processing and analysis process orchestration method, supporting multiple data types and connection number declarations, the problem of insufficient data connection and trigger control in the existing technology is solved, and more flexibility is achieved. and efficient data processing and analysis process orchestration.
Patent Information
- Application Number
- CN202310366262.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
AI Technical Summary
Existing data processing and analysis process orchestration methods cannot effectively express complex scenarios such as data connection calculations and difference set calculations, and cannot support connection verification and dynamic compatibility matching of multiple data types, resulting in limited orchestration flexibility and user use. inconvenient.
The data flow definition process and execution process are adopted. By defining and managing operators in the operator library, each port is supported to declare the data type and the maximum number of connections, and the trigger relationship is described through control connections to achieve the integration of data flow and trigger control. Each operator is allowed to have 0 to more input or output ports, and supports structured, semi-structured, and unstructured data processing.
It realizes the integration of data flow and trigger control, supports richer application scenarios, can quickly locate data connection mismatch problems, reduces the complexity of process representation, and improves the flexibility of orchestration and ease of use.
Smart Images

Figure CN118778943A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing and analysis, and specifically relates to a method and system for arranging data processing and analysis processes. Background Art
[0002] With the rapid development of the global information industry, people's awareness of the value of data continues to improve. Exploring the value of data and making it better serve society has become a continuous demand. Since the skills required for data processing and analysis technologies such as Hadoop, Spark, and Flink are relatively high, the number of people with such skills cannot meet the actual needs of society. Therefore, low-code data processing and analysis tools that can reduce the skill requirements of personnel have become the only choice. Long before the era of big data, the industry already had a class of low-code data processing and analysis tools that support visual drag and drop and are operator-oriented. Such as: SPSS, Kettle, Rapidminer, etc. These tools encapsulate a class of functions into an operator and express the operator in the form of a visual node. Allow users to drag a node graphic element from the existing operator library to replace the operator; the connection between the graphic elements represents the flow of data; in this way, a data processing or analysis process is arranged. This data processing and analysis tool is convenient and easy to use, and can greatly reduce the skill requirements of data analysts.
[0003] The existing implementation methods are as follows: In the orchestration methods provided by SPSS and Kettle, operators do not have port definitions. When a calculation requires multiple inputs or generates multiple outputs, it is impossible to clearly express each input and output. For example, it cannot accurately support data connection calculations, difference set calculations, etc. The data connection between operators has no data type constraints. When there are multiple types of data in the system, the connection validity check cannot be performed. For example, it cannot express that operators are only allowed to access unstructured data; in the orchestration method provided by RapidMiner tools, operators have clear data port definitions and port data type definitions. However, the data type check between its ports only supports simple type matching, and does not support inheritance matching and dynamic compatibility matching; only one connection is supported between ports, that is, any port cannot have two connections at the same time, which means that an input port cannot be connected to multiple preceding operators at the same time, and an output port cannot output data to two subsequent operators at the same time; it is impossible to simply express the trigger relationship of operator execution. For example, if operator B is executed after operator A is executed, operator A must be strung in the data processing flow, that is, operator A must be before operator B. Even if operator A does not require any input data, it must be serialized into the process; these expressions greatly limit the flexibility of the orchestration.
[0004] The Chinese patent application number CN201910359658.4 discloses a method and system for orchestrating big data ETL tasks. The ETL task is a directed acyclic graph, and each data processing component (i.e., operator) in the graph includes a data inflow port and a data outflow port. The data flow direction is represented by a four-tuple (FromStop, Outport, Inport, ToStop), which respectively represent the source data processing component, the source data processing component data outflow port, the target data processing component data inflow port, and the target data processing component. This expression also simply introduces that the operator has a data port definition. Other things such as port data type definition, connection number definition, and trigger relationship description are not involved.
[0005] However, all kinds of existing data processing and analysis process orchestration methods are defined for data flow. This type of orchestration mainly emphasizes the flow direction of data and does not support the execution triggering method of data. For example, when inserting table data, it is hoped that the data in the table can be cleared first and then the data can be inserted. Table clearing behavior is a prerequisite for data insertion, but table clearing behavior does not provide data for subsequent table insertion behavior. Therefore, this type of scenario is difficult to express in the existing data processing and analysis process orchestration methods. In addition, the existing orchestration methods do not express whether the operator has a port, the data type check when connecting between ports, and the number of connections allowed between ports. This limits the application scenarios that the data processing and analysis process can support to a certain extent, causing inconvenience to users. If there is no data type declaration for the port, it is impossible to find that two operators with incompatible data types are connected together in the definition state, and it can only be found when the process is executed, which will prolong the process debugging cycle; in addition, if there is no maximum connection limit declaration for the port, the default use of only one connection or unlimited connections is used instead, which cannot be compatible with complex application scenarios where some operator ports can only have one connection, and some operator ports have unlimited connections or have a special number of connections. If a single connection is used as the default connection instead of all multiple connections, the complexity of process orchestration will increase, and multiple connections need to be implemented by adding multiple operator instances, which also brings difficulty to users. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the present invention provides a method and system for arranging data processing and analysis processes to solve the above-mentioned existing problems.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] A method for arranging a data processing and analysis process includes a data process definition process and a data process execution process. The process definition process is used to complete the definition of a data processing and analysis process, and the data process execution process is used to complete the scheduling and execution of the data processing and analysis process. The data process definition process includes the following steps:
[0009] A1. Create a data processing and analysis process, load operators from the operator library and convert them into graphic components, and express them in the process definition interface;
[0010] A2. The user drags the unused operator component A from the operator library to the data flow definition template and visually configures the operator running parameters;
[0011] A3. If operator A needs to rely on the output result of the preceding operator P when running, a data connection is created from the data output port of operator P to the data input port of operator A. Each operator can have 0 or more data input ports or data output ports. The data input port defines the acceptable data type and the maximum number of connections, and the data output port defines the output data type and the maximum number of connections.
[0012] A4. Check whether the number of connections of the two ports of the newly created data connection exceeds the maximum number of connections declared by the port. If so, go to step A2 to adjust the operator connection; if not, go to step A5.
[0013] A5. Check whether the acceptable data type declared by the input port is the same as the data type declared by the output port, or whether the data type declared by the input port is the parent class of the type declared by the output port, or the data type declared by the input port is the child class of the type declared by the output port. If none of the three conditions are met, jump to step A2 and add an operator that can connect the two operators. Otherwise, jump to step A6.
[0014] A6. If operator A needs to wait for the execution of the preceding operator P to be completed before it is triggered to run, a control connection is created from the control output port of operator P to the control input port of operator A, indicating that operator A is triggered to run when operator P is executed;
[0015] A7: Is the data flow definition complete? If so, go to step A8; if not, go to step A2;
[0016] A8. Storage data processing and analysis process.
[0017] Furthermore, the data flow execution process includes the following steps:
[0018] B1. Load data processing and analysis process;
[0019] B2. Load operators from the operator library, initialize operators, and build data processing and analysis process running instances;
[0020] B3, whether the process has been completed. If not, jump to step B4; otherwise, end the process;
[0021] B4. Traverse the operators to determine whether the operators have met the execution conditions. If the control input port of the operator has data connections, and the preceding operators related to these connections have all finished running, it means that the conditions for triggering the operation of the operator have been met. If the operator has a data input port, and data has been written to the port, jump to step B5; otherwise, jump back to step B3;
[0022] B5. Execute the operator and write the calculation result of the operator from the output port. If the operator execution is completed, write the end signal of the operator from the control output port. Jump to step B3.
[0023] A data processing and analysis process orchestration system:
[0024] Operator library: The operator library manages all operators and supports operations such as adding, deleting, modifying, and querying operators.
[0025] The data flow editor is used to visually define the data processing and analysis process. The data flow editor loads operators in the operator library and represents each operator as a graphic component. Users drag the corresponding graphic component to the data flow definition panel, establish connections between component ports, check the legitimacy of port connections, and finally complete the definition of the data processing and analysis process in a visual way.
[0026] Data flow library, used to store the defined data flow;
[0027] The data flow calculation engine is responsible for interpreting and executing the data processing and analysis process defined by the data flow editor. The calculation engine parses the data flow, loads and initializes operators through the operator library, and drives the data flow execution.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention can effectively integrate the data flow and trigger control of the data processing and analysis process into one, can meet the needs of more data processing and analysis application scenarios, support the declaration of data types on ports, can describe various types of data such as structured, semi-structured, and unstructured through data types, can comprehensively integrate the processing of various types of data in the data processing and analysis process, and can locate data connection mismatch problems in the process definition more quickly through type declaration; support the declaration of the maximum number of connections on the port, can incorporate various operators with different connection requirements, reduce the complexity of process representation, and support richer application scenario needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A system structure diagram of a data processing and analysis process arrangement method and system embodiment of the present invention;
[0031] Figure 2 A schematic diagram of a data flow definition process of an embodiment of a method and system for arranging data processing and analysis flow of the present invention;
[0032] Figure 3 The present invention is a schematic diagram of the data flow execution process of a method and system embodiment for arranging data processing and analysis processes. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0034] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on this patent; in order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; for those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0035] Example:
[0036] like Figure 1-Figure 3As shown, a data processing and analysis process arrangement method of the present invention includes a data flow definition process and a data flow execution process, wherein the data flow definition process is used to complete the definition of a data processing and analysis process, and the data flow execution process is used to complete the scheduling and execution of the data processing and analysis process, and the data flow definition process includes the following steps: A1, create a data processing and analysis process, load operators from the operator library and convert them into graphic components, and express them in the process definition interface; A2, the user drags the stand-by operator component A from the operator library to the data flow definition template, and visually configures the operator operation parameters; A3, if the operator A needs to rely on the output result of the preceding operator P during operation, then create a data connection from the data output port of the operator P to the data input port of the operator A, each operator can have 0 to multiple data input ports or data output ports, the data input port defines the acceptable data type and the maximum number of connections, and the data output port defines the outputtable data. Type and maximum number of connections; A4, check whether the number of connections of the two ports of the newly created data connection exceeds the maximum number of connections declared by the port. If so, go to step A2 and adjust the operator connection; if not, execute step A5; A5, check whether the acceptable data type declared by the input port is the same as the data type declared by the output port, or whether the data type declared by the input port is the parent class of the type declared by the output port, or the data type declared by the input port is the child class of the type declared by the output port. If none of the three conditions are met, jump to step A2 and add an operator that can connect the two operators, otherwise jump to step A6; A6, if operator A needs to wait for the execution of the preceding operator P to be completed before it is triggered to run, create a control connection from the control output port of operator P to the control input port of operator A, indicating that operator A is triggered to run when operator P is executed; A7, whether the data flow is defined, if so, go to step A8; if not, jump to step A2;
[0037] A8. Store the data processing and analysis process. The data process execution process includes the following steps: B1. Load the data processing and analysis process; B2. Load the operator from the operator library, initialize the operator, and build a data processing and analysis process running instance; B3. Whether the process has ended. If the running has not ended, jump to step B4; otherwise, end the process; B4. Traverse the operator to determine whether the operator has met the execution condition. If there is a data connection at the control input port of the operator, and the preceding operators related to these connections have all ended, it means that the conditions for the operator to trigger the operation have been met. If the operator has a data input port and data has been written to the port, jump to step B5; otherwise, jump back to step B3; B5. Execute the operator and write the calculation result of the operator from the output port. If the operator execution ends, write the end signal of the operator from the control output port. Jump to step B3. A data processing and analysis process orchestration system: operator library, which manages all operators and supports operations such as adding, deleting, modifying, and querying operators; data flow editor, which is used to visually define data processing and analysis processes. The data flow editor loads operators in the operator library and represents each operator as a graphic component. Users drag the corresponding graphic component to the data flow definition panel, establish connections between component ports, detect the legitimacy of port connections, and finally complete the definition of data processing and analysis processes visually; data flow library, which is used to store the defined data flow; data flow calculation engine, which is responsible for interpreting and executing the data processing and analysis process defined by the data flow editor. The calculation engine parses the data flow, loads and initializes operators through the operator library, and drives the data flow execution.
[0038] A method for orchestrating data processing and analysis processes consists of the following core concepts:
[0039] Operator: A component with independent functions that makes up the data processing and analysis process. Each operator has a control input port and a control output port, and has 0 to multiple data input ports or data output ports.
[0040] Control input port: used to receive the signal indicating the end of the execution of the preceding operator. It can be connected to any number of control output ports.
[0041] Control output port: When the operator is executed, the operator execution end signal is output through this port. It can be connected to any number of control input ports.
[0042] Data input port: used to receive the data required for operator calculation. The data type and maximum number of connections of the data to be input can be declared.
[0043] Data output port: used to output the calculation results of the operator. You can declare the data type of the output result and the maximum number of connections.
[0044] Control connection: A directed edge from a control output port to a control input port. It describes the transmission relationship of the execution end signal between operators.
[0045] Data connection: A directed edge from a data output port to a data input port. It describes the data flow relationship between operators.
[0046] Data type: The structure of a data set that can be processed and analyzed in a process. Inheritance relationships between data types are allowed. ' / ' can be used as a hierarchical separator for data types. For example, data type a is named ' / a', and data type a1 inherits from type a, and its naming format is / a / a1. An input port declared as an input of a parent type can always receive data from an output port declared as a child type, that is, if an input port declares a data type of / a, it is allowed to establish a data connection with an output port declared as data type / a / a1. Subset relationships between data types are allowed, that is, if a type a1 has all the structural definitions of a type a, then a is called a subset of a1. An input port declared as data type a is allowed to establish a data connection with an output port declared as data type a1.
[0047] The above are only embodiments of the present invention. The common knowledge such as the known specific structures and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field are aware of all the common technical knowledge in the technical field of the invention before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement the scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for the ordinary technicians in the relevant field to implement this application. It should be pointed out that for the technicians in this field, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicality of the patent.
[0048] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "inner", "outer", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as a limitation on this patent. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0049] In the description of the present invention, unless otherwise clearly specified and limited, if the term "connection" or the like appears to indicate the connection relationship between components, the term should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two components or the interaction relationship between two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
Claims
1. A method for arranging a data processing and analysis process, characterized in that: It includes a data flow definition process and a data flow execution process. The process definition process is used to complete the definition of a data processing and analysis process. The data flow execution process is used to complete the scheduling and execution of the data processing and analysis process. The data flow definition process includes the following steps: A1. Create a data processing and analysis process, load operators from the operator library and convert them into graphic components, and express them in the process definition interface; A2. The user drags the unused operator component A from the operator library to the data flow definition template and visually configures the operator running parameters; A3. If operator A needs to rely on the output result of the preceding operator P when running, a data connection is created from the data output port of operator P to the data input port of operator A. Each operator can have 0 or more data input ports or data output ports. The data input port defines the acceptable data type and the maximum number of connections, and the data output port defines the output data type and the maximum number of connections. A4. Check whether the number of connections of the two ports of the newly created data connection exceeds the maximum number of connections declared by the port. If so, go to step A2 to adjust the operator connection; if not, go to step A5. A5. Check whether the acceptable data type declared by the input port is the same as the data type declared by the output port, or whether the data type declared by the input port is the parent class of the type declared by the output port, or the data type declared by the input port is the child class of the type declared by the output port. If none of the three conditions are met, jump to step A2 and add an operator that can connect the two operators. Otherwise, jump to step A6. A6. If operator A needs to wait for the execution of the preceding operator P to be completed before it is triggered to run, a control connection is created from the control output port of operator P to the control input port of operator A, indicating that operator A is triggered to run when operator P is executed; A7: Is the data flow definition complete? If so, go to step A8; If not completed, jump to step A2; A8. Storage data processing and analysis process.
2. A method for arranging data processing and analysis flow according to claim 1, characterized in that: The data flow execution process includes the following steps: B1. Load data processing and analysis process; B2. Load operators from the operator library, initialize operators, and build data processing and analysis process running instances; B3, whether the process has been completed. If not, jump to step B4; otherwise, end the process; B4. Traverse the operators to determine whether the operators have met the execution conditions. If the control input port of the operator has data connections, and the preceding operators related to these connections have all finished running, it means that the conditions for triggering the operation of the operator have been met. If the operator has a data input port, and data has been written to the port, jump to step B5; Otherwise jump back to step B3; B5. Execute the operator and write the calculation result of the operator from the output port. If the operator execution is completed, write the end signal of the operator from the control output port. Go to step B3.
3. A data processing and analysis process arrangement system for implementing the method of claim 1, characterized in that: include: Operator library: The operator library manages all operators and supports operations such as adding, deleting, modifying, and querying operators. The data flow editor is used to visually define the data processing and analysis process. The data flow editor loads operators in the operator library and represents each operator as a graphic component. Users drag the corresponding graphic component to the data flow definition panel, establish connections between component ports, check the legitimacy of port connections, and finally complete the definition of the data processing and analysis process in a visual way. Data flow library, used to store the defined data flow; The data flow calculation engine is responsible for interpreting and executing the data processing and analysis process defined by the data flow editor. The calculation engine parses the data flow, loads and initializes operators through the operator library, and drives the data flow execution.
