Data processing method and device, computer equipment and storage medium
By obtaining the business type of the data source and converting the data format, combined with the feature task configuration information, and using flow computing and logical computing engines to perform feature calculations, the reliability and efficiency problems of data processing in the existing technology are solved, and efficient and accurate data processing is achieved. Data processing.
Patent Information
- Application Number
- CN202310422563.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the reliability and accuracy of data processing are low, and the integration between modules is not high, resulting in reduced efficiency.
By obtaining the business type of the data source, converting the data format, and determining the feature calculation strategy based on the matching feature task configuration information, perform feature calculations on the data, unify the data format to adapt to multiple data sources, and use flow computing and logical computing engines to perform Feature aggregation or logical calculation.
It improves the accuracy and efficiency of data processing, enhances the integration between modules, adapts to feature calculation strategies of different business types, and improves the quality of data processing.
Smart Images

Figure CN118796916A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a data processing method, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of Internet technology, the types of data processing are becoming more and more diverse. For example, feature calculation and storage of data can be performed through feature platforms. At present, there is generally only a single spark batch processing mode or flink stream computing mode for data feature calculation, which reduces the reliability and accuracy of data feature calculation and the quality of data processing. In addition, the integration between the various modules of data processing is not high, and there is a lot of adaptation work between the modules, which leads to poor use and reduces the efficiency of data processing. Summary of the invention
[0003] The embodiments of the present application provide a data processing method, apparatus, computer equipment and storage medium, which can improve the accuracy and efficiency of data processing.
[0004] To solve the above technical problems, the present application provides the following technical solutions:
[0005] The present application provides a data processing method, including:
[0006] Acquire a data source to be processed, and acquire a business type of the data source;
[0007] Convert the data format of the data source into a target data format to obtain converted data;
[0008] Acquire characteristic task configuration information matching the business type;
[0009] Determining a feature calculation strategy for the converted data according to the feature task configuration information;
[0010] Performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data;
[0011] The characteristic data is processed.
[0012] According to one aspect of the present application, there is also provided a data processing device, including:
[0013] A first acquisition unit, used to acquire a data source to be processed, and acquire a business type of the data source;
[0014] A conversion unit, used to convert the data format of the data source into a target data format to obtain converted data;
[0015] A second acquisition unit, used to acquire characteristic task configuration information matching the business type;
[0016] A determination unit, configured to determine a feature calculation strategy for the converted data according to the feature task configuration information;
[0017] A calculation unit, used for performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data;
[0018] A processing unit is used to process the feature data.
[0019] According to one aspect of the present application, a computer device is also provided, including a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, any data processing method provided in the embodiments of the present application is executed.
[0020] According to one aspect of the present application, a storage medium is also provided, wherein the storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any one of the data processing methods provided in the embodiments of the present application.
[0021] According to one aspect of the present application, a computer program product is also provided, including a computer program, wherein the computer program is loaded by a processor to execute any one of the data processing methods provided in the embodiments of the present application.
[0022] The embodiment of the present application can obtain the data source to be processed and the business type of the data source, and convert the data format of the data source into the target data format to obtain the converted data; obtain the feature task configuration information matching the business type, and determine the feature calculation strategy of the converted data according to the feature task configuration information; then the feature calculation can be performed on the converted data according to the feature calculation strategy to obtain the feature data, and the feature data can be processed at this time. This scheme converts the data format through the data source to unify the data format to adapt to a variety of different data sources, and performs feature calculation on the converted data after the unified data format based on the feature calculation strategy corresponding to the feature task configuration information matching the business type, so that the feature calculation can be adapted and efficiently performed on the converted data according to the different feature calculation strategies corresponding to different business types, thereby improving the accuracy and efficiency of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 It is a schematic diagram of a scenario in which the data processing method provided in the embodiment of the present application is applied;
[0025] Figure 2 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0026] Figure 3 This is a schematic diagram of data source acquisition provided by an embodiment of the present application;
[0027] Figure 4 This is another schematic diagram of data source acquisition provided in an embodiment of the present application;
[0028] Figure 5 It is a schematic diagram of data source processing provided by an embodiment of the present application;
[0029] Figure 6 is another schematic diagram of data source processing provided in an embodiment of the present application;
[0030] Figure 7 is a schematic diagram of data format conversion provided by an embodiment of the present application;
[0031] Figure 8 It is a schematic diagram of the feature calculation strategy workflow provided by the embodiment of the present application;
[0032] Fig. 9 is a schematic diagram of a DSL engine architecture provided in an embodiment of the present application;
[0033] Fig.10 It is a schematic diagram of the compilation process provided by the embodiment of the present application;
[0034] Fig.11 is a schematic diagram of a character stream data table provided in an embodiment of the present application;
[0035] Fig.12 is a schematic diagram of an operating system process memory structure provided by an embodiment of the present application;
[0036] Fig.13 It is a schematic diagram of the Python engine architecture provided in the embodiment of the present application;
[0037] Fig.14 is a schematic diagram of a data warehouse provided in an embodiment of the present application;
[0038] Fig.15 is a schematic diagram of feature calculation provided in an embodiment of the present application;
[0039] Fig.16 It is a data processing system architecture diagram provided in an embodiment of the present application;
[0040] Fig.17is a schematic diagram of a data processing device provided in an embodiment of the present application;
[0041] Fig.18 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] 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 the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0043] Embodiments of the present application provide a data processing method, apparatus, computer equipment, and storage medium.
[0044] See also Figure 1 , Figure 1 This is a scenario diagram of the application of the data processing method provided in an embodiment of the present application. The data processing method application may include a data processing device, which may be specifically integrated in a server 10. The server 10 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms, but is not limited to these.
[0045] The server 10 and the terminal 20 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present application. The terminal 20 may be a mobile phone, a tablet computer, a laptop computer, a desktop computer, or a wearable device.
[0046] Among them, the server 10 can be used to receive the data source sent by the terminal 20, perform data format conversion on the data source according to actual needs, and obtain converted data in the target data format, so that the data format can be unified to adapt to a variety of different data sources, and based on the feature calculation strategy corresponding to the feature task configuration information matching the business type of the data source, perform feature calculation on the converted data to obtain feature data, for example, the converted data can be firstly subjected to feature aggregation calculation through the stream calculation engine, and then subjected to feature logic calculation through the logic calculation engine; or, the converted data can be first subjected to feature logic calculation through the logic calculation engine, and then subjected to feature aggregation calculation through the stream calculation engine; or, the converted data can be subjected to feature aggregation calculation only through the stream calculation engine; or, the converted data can be subjected to feature logic calculation only through the logic calculation engine; and so on. Therefore, the converted data can be adaptively and efficiently subjected to feature calculation strategies corresponding to different business types, thereby improving the accuracy and efficiency of data processing.
[0047] It should be noted that Figure 1 The scenario diagram of the data processing method application shown is only an example. The data processing method application and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided by the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the application of data processing methods and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
[0048] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0049] In this embodiment, description will be made from the perspective of a data processing device, which may be specifically integrated into a computer device such as a server.
[0050] See also Figure 2 , Figure 2 : is a flow chart of a data processing method provided by an embodiment of the present application. The data processing method may include:
[0051] S101: Acquire a data source to be processed, and acquire a business type of the data source.
[0052] Among them, data sources can include multiple types, for example, data sources can include real-time reported big data mmdata, landed stored log data files, distributed publish-subscribe messages kafka / pulsar output by real-time stream computing, real-time business data (such as microservice data svrkit), etc. The data source can be a data source generated in business scenarios such as security business detection or search.
[0053] The method for obtaining the data source can be flexibly set according to actual needs. In one embodiment, obtaining the data source to be processed can include: obtaining the data log stream reported by the scene business; generating a data source from the data log stream in the form of a distributed data file.
[0054] In order to improve the convenience of data source acquisition, data sources can be generated based on data log streams. For example, taking the data source as big data mmdata, Figure 3 As shown, the data log stream reported by the scenario business (such as instant messaging business) to the log center can be obtained, and then the reported data log stream can be collected through the real-time data collection layer (Tencent Data Bank, tdbank), and the collected data log stream is generated as a data source in the form of a distributed data file of the distributed data file system (Hadoop Distributed File System, hdfs), and is stored in the database tdw in the form of hdfs data files.
[0055] In one implementation, in order to support the real-time consumption of big data mmdata by scenario services, such as Figure 4 As shown in the figure, in the log center, data log streams can be selectively written into the distributed message publishing platform pulsar according to the business configuration, and forwarded and consumed through the distributed message publishing platform pulsar. Alternatively, in the real-time data collection layer tdbank, forwarding consumption can be configured through the message middleware tube. The data generated during the consumption process and the result data after consumption can all be used as data sources for subsequent feature calculation and processing.
[0056] In one implementation, in order to improve data processing efficiency, data sources may be processed in batches, such as Figure 5 As shown, for the distributed data files HDFS stored in the database TDW, the distributed data files HDFS can be batch processed through the scheduled task platform Gemini. For example, the distributed data files HDFS can be task-dependently processed to generate a data table, the Spark RPC data table can be remotely called through the computing engine, and the data table can be transferred to the corresponding TDW adapter for subsequent data format conversion processing.
[0057] In one embodiment, for a distributed publish-subscribe message kafka data source, such as Figure 6 As shown, the stream computing engine flink can be used to perform aggregation or association computing processing to obtain distributed publish-subscribe message kafka, and the distributed publish-subscribe message kafka is transmitted to the corresponding kafka adapter for subsequent data format conversion processing.
[0058] The business type of the data source can be flexibly set according to the business scenario. Different business scenarios can correspond to different business types. For example, for the application security business detection scenario, the business type of the data source can include live content sampling and account login information.
[0059] S102: Convert the data format of the data source into the target data format to obtain converted data.
[0060] In order to improve the efficiency of subsequent data processing, the data format of the data source can be unified. For example, the data format of the data source can be obtained, and the target data format can be flexibly set based on the computing requirements of the computing engine used for feature calculation. Then, the data format of the data source can be converted to the target data format to obtain the converted data, that is, the converted data in the target data format is obtained. The specific format type of the target data format is not limited here. It should be noted that for a data source whose data format is the target data format, data format conversion is not required, that is, when the data format of the data source is the target data format, the data source can be directly used as the converted data.
[0061] In one embodiment, converting the data format of a data source into a target data format to obtain converted data may include: obtaining an adapter that matches the data format of the data source; performing data protocol parsing on the data source through the adapter to convert the data format of the data source into the target data format to obtain converted data.
[0062] Since data sources can be of various types and data parsing protocols of different data sources may be different, adapters for various data sources can be customized to converge on a unified data parsing protocol so as to convert the data format of the data source into the target data format.
[0063] For example, Figure 7As shown, the data source may include big data mmdata consumed based on the message middleware, distributed data files hdfs generated based on the scheduled task platform, and distributed publish-subscribe messages kafka generated based on the stream computing engine, wherein the big data is stored in the mmdata database, the distributed data files hdfs are stored in the tdw database, and the distributed publish-subscribe messages are stored in the kafka database. An mmdata adapter matching the data format of the big data mmdata may be obtained, and the data protocol of the big data mmdata may be parsed through the mmdata adapter to convert the data format of the big data mmdata into the target data format to obtain the converted data. Also, a tdw adapter matching the data format of the distributed data file hdfs may be obtained, and the data protocol of the distributed data file hdfs may be parsed through the tdw adapter to convert the data format of the distributed data file hdfs into the target data format to obtain the converted data. Also, a kafka adapter matching the data format of the distributed publish-subscribe message kafka may be obtained, and the data protocol of the distributed publish-subscribe message kafka may be parsed through the kafka adapter to convert the data format of the distributed publish-subscribe message kafka into the target data format to obtain the converted data. Therefore, after passing through the adapter, each data source can be converted into a unified target data format.
[0064] S103: Acquire characteristic task configuration information matching the service type.
[0065] S104: Determine a feature calculation strategy for the converted data according to the feature task configuration information.
[0066] In order to improve the reliability and accuracy of data processing and ensure the quality of data processing, the feature calculation strategy of the converted data can be determined according to the business type of the data source. The feature calculation strategy can be flexibly set according to actual needs to cover different business needs. For example, Figure 8 As shown, the feature calculation strategy may include first performing feature aggregation calculation on the converted data through the stream computing engine flink, and then performing feature logic calculation on the converted data through the logic computing engine werule; or, first performing feature logic calculation on the converted data through the logic computing engine werule, and then performing feature aggregation calculation on the converted data through the stream computing engine flink; or, only performing feature aggregation calculation on the converted data through the stream computing engine flink; or, only performing feature logic calculation on the converted data through the logic computing engine werule; and so on.
[0067] Among them, the feature task configuration information can be flexibly set according to actual needs. For example, the pre-set feature task configuration information matching the business type can be obtained, or the feature task configuration interface can be displayed, and the configuration instructions input by the user can be received in the feature task configuration interface. The feature task configuration is performed based on the configuration instructions to generate the feature task configuration information. Different tasks can be configured for each different data source, and each task can correspond to feature task configuration information and one or more feature calculation strategies. After obtaining the feature task configuration information matching the business type, the feature calculation strategy corresponding to the feature task configuration information can be determined, and the feature calculation strategy can be used as the feature calculation strategy for the converted data. For example, business type A matches and uses feature calculation strategy a to perform feature calculation, business type B matches and uses feature calculation strategy b to perform feature calculation, business type C matches and uses feature calculation strategy c to perform feature calculation, etc.
[0068] S105 . Perform feature calculation on the converted data according to the feature calculation strategy to obtain feature data.
[0069] The characteristic data can be flexibly set according to actual business needs and is not limited here. For example, for an instant messaging application, the characteristic data may include the account that posted the most videos within a preset time period, the number of account logins, the account login address, etc.
[0070] In one embodiment, performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data may include: performing feature aggregation calculation on the converted data through a stream computing engine to obtain aggregated data; performing feature logic calculation on the aggregated data through a logic computing engine to obtain feature data.
[0071] In order to improve the accuracy of feature calculation, the feature aggregation calculation can be performed on the converted data through the stream computing engine flink, and then the feature logic calculation can be performed on the converted data through the logic computing engine werule. For example, the feature aggregation calculation can be performed on the converted data through the stream computing engine flink to obtain aggregated data, and the aggregated data can be the feature data obtained by the stream computing engine flink performing feature aggregation calculation on the converted data. The aggregated data obtained for different converted data are different, and then the feature logic calculation can be performed on the aggregated data through the logic computing engine werule to obtain the feature data. Among them, the stream computing engine flink can include a structured query language (SQL) syntax layer, a state computing layer, and a state storage layer. For example, the SQL syntax layer of the stream computing engine flink can be used to extract fields from the converted data to obtain field information, and then the state computing layer performs feature aggregation calculation based on the field information to obtain aggregated data, and the aggregated data is stored in the state storage layer. The logic computing engine werule may include a first logic computing engine and a second logic computing engine, etc. The first logic computing engine may be a customized logic computing (Domain Specific Language, DSL) engine, and the second logic computing engine may be a programmed logic computing PYTHON engine. The logic computing engine werule may use the DSL engine and the PYTHON engine to perform feature logic computing, or may only use the DSL engine or the PYTHON engine to perform feature logic computing.
[0072] In one embodiment, feature calculation is performed on the converted data according to the feature calculation strategy to obtain feature data, which may include: performing feature aggregation calculation on the converted data through a stream computing engine to obtain first initial data; performing feature logic calculation on the converted data through a logic computing engine to obtain second initial data; and fusing the first initial data and the second initial data to obtain feature data.
[0073] In order to improve the flexibility and reliability of feature calculation, the converted data can be calculated by the stream calculation engine flink and the logic calculation engine werule respectively, and then the calculation results can be fused. For example, the stream calculation engine flink can be used to perform feature aggregation calculation on the converted data to obtain the first initial data. The first initial data can be the feature data obtained by the stream calculation engine flink performing feature aggregation calculation on the converted data. The first initial data obtained for different converted data are different. Also, the logic calculation engine werule can be used to perform feature logic calculation on the converted data to obtain the second initial data. The second initial data can be the feature data obtained by the logic calculation engine werule performing feature logic calculation on the converted data. The second initial data obtained for different converted data are different. Then, the first initial data and the second initial data can be fused to obtain feature data. The specific fusion method can be flexibly set according to actual needs. For example, the first initial data and the second initial data can be weighted to obtain feature data, or the first initial data and the second initial data can be screened to obtain feature data, and so on.
[0074] In one embodiment, performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data may include: performing feature logic calculation on the converted data through a logic calculation engine to obtain candidate data; performing feature aggregation calculation on the candidate data through a stream calculation engine to obtain feature data.
[0075] In order to improve the flexibility and accuracy of feature calculation, the logical calculation engine Werule can first perform feature logic calculation on the converted data, and then perform feature aggregation calculation on the converted data through the stream computing engine Flink. For example, the logical calculation engine Werule can perform feature logic calculation on the converted data to obtain candidate data, which can be the feature data obtained by the logical calculation engine Werule performing feature logic calculation on the converted data. The candidate data obtained for different converted data are different. Then, the stream computing engine Flink can perform feature aggregation calculation on the candidate data to obtain feature data.
[0076] In one implementation, performing feature calculation on the converted data according to the feature calculation strategy to obtain the feature data may include: performing feature aggregation calculation on the converted data by a stream computing engine to obtain the feature data.
[0077] In order to improve the efficiency of feature calculation, the feature aggregation calculation can be performed on the converted data only through the stream computing engine flink to obtain feature data. For example, for streaming computing scenarios, such as counting the top accounts that have published video accounts in the last hour, the traditional approach is to store and accumulate count values for each publication, and then select all to sort and summarize. This method not only has a long development process, but also cannot be reused, resulting in excessive human resource consumption. Therefore, this embodiment can accelerate the feature calculation of the converted data through the streaming computing method of the stream computing engine flink.
[0078] In one embodiment, performing feature calculation on the converted data according to the feature calculation strategy to obtain the feature data may include: performing feature logic calculation on the converted data through a logic calculation engine to obtain the feature data. In order to improve the convenience of feature calculation, feature aggregation calculation may be performed on the converted data only through the logic calculation engine werule to obtain the feature data.
[0079] In one embodiment, the logic computing engine includes a first logic computing engine, and the characteristic data is obtained by performing characteristic logic computing on the converted data by the first logic computing engine. The characteristic data is obtained by performing characteristic logic computing on the converted data by the first logic computing engine, which may include: calling a loader to load a characteristic task corresponding to the source data by the first logic computing engine; calling a compiler to compile the characteristic task to obtain a target symbol table by the first logic computing engine; calling an executor to map the converted data and the target symbol table to obtain the characteristic data by the first logic computing engine.
[0080] The first logic computing engine may be a DSL engine, such as Fig. 9As shown, the DSL engine may include a loader, a compiler, an executor, a feature task memory, a basic library and an extension library, etc. The loader may be used to load feature tasks, the compiler may be used to compile feature tasks, the executor may be used to perform mapping processing between converted data and target symbol tables, the feature task memory may be used to store feature tasks, the basic library may be used to store basic functions and grammar rules, etc., and the extension library may be used to store custom encapsulation functions, etc. In the process of performing feature logic calculation on the converted data, the DSL engine may first load the feature task corresponding to the source data from the feature task management end through the DSL engine calling the loader, and may also store the feature task in the feature task memory, for example, the feature task corresponding to the source data may be searched from the feature task database based on the identifier of the source data, and the feature task may be loaded into the loader of the DSL engine through the feature task management end. The feature task may be flexibly set according to actual needs, which is not limited here, and may be statistical account login information or account publishing content, etc. The feature task management end may play the role of a bridge between the feature task database and the DSL engine, and the feature tasks stored in the feature task database may enter the loader of the DSL engine through the feature task management end. Then, the DSL engine can call the compiler to compile the feature task to obtain the target symbol table. The specific compilation method will be described in detail below. The target symbol table may include operators, data structures, basic functions, grammar rules, and custom encapsulation functions. At this time, the DSL engine can call the executor to map the converted data and the target symbol table to obtain feature data. For example, the converted data can be substituted into the function in the target symbol table for operation to obtain feature data. The efficiency and accuracy of feature calculation can be improved by performing feature logic calculation on the converted data through the loader, compiler, executor, etc. of the DSL engine.
[0081] In one embodiment, calling a compiler through the first logical computing engine to compile a feature task to obtain a target symbol table may include: performing lexical analysis on a source code file of the feature task through the first logical computing engine to obtain a character stream; performing syntactic analysis on the character stream to obtain a syntax tree; generating an intermediate code according to the syntax tree; and generating a target symbol table according to the intermediate code.
[0082] The compiler of the DSL engine can use an LL parser, such as the open source grammar analyzer ANTLR, which can automatically generate a grammar tree based on the input and display it visually, or it can be based on the grammar analyzer LALRparser, such as a tool for generating a grammar analyzer (Yet Another Compiler Compiler, YACC), etc. The specific compilation process can be as follows Fig.10As shown in FIG. 1 , the DSL engine can first call the compiler to perform lexical analysis on the source code file of the feature task to obtain a character stream (which can be called a token stream) contained in the source code file. For example, the lexical analyzer (Lexical Analyzer Generator, LEX) of the compiler can be used to perform lexical analysis on the source code file of the feature task, and the obtained token stream can be as follows: Fig.11 As shown, the token stream may include operators, conditions and loops in the basic syntax of programming languages, data structures (including string, vector, image map, and data description language protobuf, etc.) in the intermediate and advanced sections of programming languages, and system functions (basic functions) and custom functions (custom encapsulated functions) in the advanced extension sections of programming languages. Then, the character stream can be parsed to obtain an abstract syntax tree. For example, the character stream can be parsed using YACC syntax rules. At this time, an intermediate code can be generated based on the syntax tree. For example, the code contained in the syntax tree can be extracted to obtain the intermediate code. Finally, a target symbol table can be generated based on the intermediate code. For example, the intermediate code can be optimized to filter unnecessary logical expressions to obtain the target symbol table. After performing lexical analysis and syntax analysis on the source code file of the feature task, the compilation efficiency and reliability can be improved based on the intermediate code target symbol table.
[0083] It should be noted that in the DSL engine execution environment, the corresponding programming language can be used according to actual needs. For example, for C++ development, data structures of the Standard Template Library (STL) such as std::string, std::vector, std::map are often used. The data description language Protobuf third-party library or the compiled .a / .so basic library are also used. Then, the operating system compiler suite (GNU Compiler Collection, GCC) compiles it into a binary executable file. After the binary executable file is loaded and executed by the operating system, it exists and runs in the form of a process, such as Fig.12The figure shows the memory structure of the Linux operating system process, including (1) code area: used to store machine instructions generated after the program is compiled, that is, the instructions to be executed by the central processing unit (CPU); (2) data area: used to store initialized global variables, static variables, and constant data; (3) uninitialized data area (which can be called BSS area): used to store uninitialized global variables and static variables; (4) heap: used to store memory segments dynamically allocated during process operation, whose size is not fixed and can be dynamically expanded or reduced; (5) stack: used to store local variables temporarily created by the program, that is, variables defined in the function; (6) kernel area: including kernel image, physical page table, and driver program.
[0084] In one embodiment, performing lexical analysis on the source code file of the feature task to obtain a character stream may include: performing target character filtering on the source code file of the feature task to obtain a filtered code file; and performing character segmentation processing on the filtered code file to obtain a character stream.
[0085] For example, the characters contained in the source code file of the feature task can be extracted, and the characters contained in the source code file can be screened to filter out target characters such as spaces and comments to obtain a filtered code file, and then the filtered code file is processed by character segmentation according to the preset segmentation rules to obtain a character stream (i.e., token stream). The specific character segmentation method can be flexibly set according to actual needs. For example, single character or multiple characters can be segmented. By filtering unnecessary target characters and performing character segmentation, the quality of the character stream can be improved.
[0086] In one implementation, generating a target symbol table based on the intermediate code may include: optimizing the intermediate code to obtain optimized intermediate code; and performing function linking on functions included in the optimized intermediate code to obtain a target symbol table.
[0087] In order to ensure the accuracy of the target symbol table acquisition, the intermediate code can be optimized and function-linked. Specifically, the intermediate code can be optimized first to obtain the optimized intermediate code, for example, logical expressions such as AND or NOT in the intermediate code can be removed. Then the functions contained in the optimized intermediate code can be subjected to function-linking processing to obtain the target symbol table, for example, the functions contained in the optimized intermediate code can be extracted, and the functions contained in the optimized intermediate code can be queried in the basic function library and the extended function library to determine whether the functions in the optimized intermediate code are stored in the basic library and the extended library. If the functions in the optimized intermediate code are stored in the basic library and the extended library, the functions queried can be subjected to function-linking processing to obtain the target symbol table.
[0088] In one embodiment, the logical computing engine includes a second logical computing engine, and the feature data is obtained by performing feature logical calculation on the converted data by the second logical computing engine. The feature data is obtained by performing feature logical calculation on the converted data by the second logical computing engine, which may include: calling a management process by the second logical computing engine to add the converted data to a data processing queue; calling a working process by the second logical computing engine to perform feature aggregation calculation on the converted data in the data processing queue to obtain the feature data.
[0089] The second logic computing engine may be a PYTHON engine (i.e., a Python engine), such as Fig.13 As shown, the PYTHON engine may include a management process, a data processing queue, and multiple working processes, etc. The use of a multi-process mode can effectively avoid the Global Interpreter Lock (GIL). The management process is used for DSL engine communication, exchanging data to be processed and calculation results, the data processing queue (io queue) is used to cache the data to be processed, and the working process is used to perform feature aggregation calculation. Specifically, the management process can be called by the PYTHON engine to receive the data to be processed sent by the DSL engine. The data to be processed can be converted data obtained by converting the data format of the data source, or the data to be processed can be candidate data obtained by the DSL engine performing feature logic calculation on the converted data. When the data to be processed is converted data, the converted data can be added to the data processing queue io queue, and one or more working processes are called by the PYTHON engine to perform feature aggregation calculation on the converted data in the data processing queue to obtain feature data. For example, for scenes such as Jieba word segmentation and XML text parsing, convenient processing can be performed through the PYTHON engine, thereby improving the convenience and efficiency of feature calculation.
[0090] S106: Process the feature data.
[0091] After the characteristic data is obtained, the characteristic data can be processed according to actual needs, for example, the characteristic data can be stored and analyzed.
[0092] In one embodiment, processing the feature data may include: obtaining a state type of the feature data; and storing the feature data in a database matching the state type in a data warehouse in a list form.
[0093] The state types of feature data may include online real-time generation state and offline batch generation state, and feature data of different state types may be stored in different databases. Fig.14As shown, the data warehouse may include a real-time read-write database tablekvDB and an offline write real-time read database featurekvDB. After obtaining the feature data, the state type of the feature data may be obtained. When the state type of the feature data is an online real-time generated state, the feature data may be stored in the real-time read-write database tablekvDB of the data warehouse in a list form or other form; when the state type of the feature data is an offline batch generated state, the feature data may be stored in the offline write real-time read database featurekvDB of the data warehouse in a list form or other form. By storing feature data in a list form, unified and standardized management can be achieved, and by storing feature data in a matching database based on the state type of feature data, the convenience of reading and writing feature data can be improved, so that the data warehouse has good read and write performance and a unified data management specification.
[0094] In one implementation, processing the feature data may include: performing feature analysis on the feature data to generate feature distribution information; and visually displaying the feature distribution information.
[0095] After obtaining the characteristic data, the characteristic data can be analyzed according to actual needs. For example, the characteristic distribution can be analyzed to generate characteristic distribution information. The characteristic distribution information can be flexibly set according to the actual application scenario requirements. For example, for the security business detection scenario of instant messaging, the characteristic distribution information may include account login address distribution, content publishing time and frequency, and characteristic threshold distribution map, etc. After obtaining the characteristic distribution information, the characteristic distribution information can be visualized in the user interface (UI), or the characteristic distribution information can be sent to a display terminal and visualized through the display terminal, or the characteristic distribution information can be stored. When a display instruction is received, the pre-stored characteristic distribution information can be obtained and displayed based on the display instruction.
[0096] The embodiment of the present application can obtain the data source to be processed and the business type of the data source, and convert the data format of the data source into the target data format to obtain the converted data, obtain the feature task configuration information matching the business type, and determine the feature calculation strategy of the converted data according to the feature task configuration information; then, feature calculation can be performed on the converted data according to the feature calculation strategy to obtain feature data, and the feature data can be processed at this time. This solution converts the data format through the data source to unify the data format to adapt to a variety of different data sources, and performs feature calculation on the converted data after the unified data format based on the feature calculation strategy corresponding to the feature task configuration information matching the business type, so that the feature calculation can be adapted and efficiently performed on the converted data according to the different feature calculation strategies corresponding to different business types, thereby improving the accuracy and efficiency of data processing.
[0097] The method described in the above embodiment is further described in detail below with examples.
[0098] This embodiment takes the data processing device integrated in the server as an example. In the security detection business scenario of instant messaging, the process of the server processing data can be as follows: Fig.15 As shown, for example, the server can obtain a data source, which can be forwarded and consumed by the message middleware, and can perform feature calculations on the consumed data source through a computing engine (including a stream computing engine and a logical computing engine) to obtain feature data, which can then be stored. The feature data can be analyzed according to actual needs, and the features can be managed or reported based on the analysis results, and part of the feature data can be used as a data source.
[0099] The following will be described in detail. The server may be integrated with a data processing system, and the data processing system may be as follows: Fig.16 As shown, the server can customize the configuration information such as business and feature tasks through the user interface of the business configuration platform (which can be a feature development portal). The user interface can be a web workbench. For example, the configuration information related to the security detection business of instant messaging can be set. The data access gateway (Common Gateway Interface, CGI) of the business configuration platform can access the data source, and the data source can also be consumed in the data consumption layer and stored in the corresponding database. In addition, based on the configuration information related to the security detection business of instant messaging, the server can obtain data source a in database A of the data consumption layer, obtain data source b in database B of the data consumption layer, and obtain data source c in database C of the data consumption layer. For example, obtain distributed data files hdfs in the tdw database, obtain distributed publish-subscribe messages kafka in the kafka database, obtain big data mmdata in the mmdata database, and obtain microservice data generated by the microservice svrkit, etc.
[0100] After obtaining the data source, the data formats of data sources A, B, and C can be converted into target data formats recognizable by the computing engine through the protocol adapter module to obtain the converted data. For example, the data protocol of the distributed data file HDFS can be parsed through the TDW adapter to convert the data format of the distributed data file HDFS into the target data format to obtain the converted data; for another example, the data protocol of the distributed publish-subscribe message Kafka can be parsed through the Kafka adapter to convert the data format of the distributed publish-subscribe message Kafka into the target data format to obtain the converted data; for another example, the data protocol of the big data mmdata can be parsed through the mmdata adapter to convert the data format of the big data mmdata into the target data format to obtain the converted data.
[0101] After obtaining the converted data in the target data format, the converted data can be transmitted to the computing engine, and the computing engine performs feature calculation on the converted data. For example, if there are multiple data sources: data source a, data source b, and data source c, the converted data a in the target data format, the converted data b in the target data format, and the converted data c in the target data format can be obtained accordingly. Then, the configuration information such as the custom setting business and feature tasks can be queried, and the feature calculation strategy corresponding to the converted data can be determined based on the configuration information.
[0102] For example, for the feature calculation strategy a corresponding to the converted data a, the feature aggregation calculation can be performed on the converted data through the stream computing engine flink, and then the feature logic calculation can be performed on the converted data through the logic computing engine werule. Specifically, the feature aggregation calculation can be performed on the converted data through the stream computing engine flink to obtain the aggregated data, and then the feature logic calculation can be performed on the aggregated data through the DSL engine in the logic computing engine werule to obtain the candidate logic data. For example, the feature task corresponding to the source data can be loaded by the DSL engine calling the loader, the feature task can be compiled by the DSL engine calling the compiler to obtain the target symbol table, and the DSL engine can call the executor to map the converted data and the target symbol table to obtain the candidate logic data. And, the feature logic calculation can be performed on the candidate logic data through the PYTHON engine in the logic computing engine werule to obtain the feature data. For example, the management process can be called through the PYTHON engine to add the candidate logic data to the data processing queue for processing, and the working process can be called through the candidate logic data to perform feature aggregation calculation on the candidate logic data in the data processing queue to obtain the feature data A.
[0103] For the feature calculation strategy b corresponding to the converted data b, the logical calculation engine werule can be used to perform feature logic calculation on the converted data, and then the stream calculation engine flink can be used to perform feature aggregation calculation on the converted data to obtain feature data B. For the feature calculation strategy c corresponding to the converted data c, only the logical calculation engine werule can be used to perform feature logic calculation on the converted data to obtain feature data C.
[0104] It should be noted that in the process of performing feature calculations on the converted data through the computing engine, the server can call the data in the graph database of the computing ecosystem, the data for online inference, the data stored in the storage service 1, or the data in the microservice 2 according to actual needs, and perform feature calculations in combination with the converted data, which is not limited here.
[0105] After obtaining the feature data, the server can store the feature data in the data warehouse or storage service 2 of the feature storage layer. For example, for feature data A, feature data A can be stored in the data warehouse. Specifically, the state type of feature data A can be obtained. When the state type of feature data A is an online real-time generated state, feature data A can be stored in the real-time read-write database tablekvDB of the data warehouse in a list form or other forms; when the state type of feature data A is an offline batch generated state, feature data A can be stored in the offline write real-time read database featurekvDB of the data warehouse in a list form or other forms. For another example, corresponding to feature data B and feature data C, feature data B and feature data C can be stored in storage service 2.
[0106] The server can perform feature operation management on the feature data. For example, it can perform feature analysis on the feature data, generate feature distribution information, and transmit the feature distribution information to the user interface of the business configuration platform for visual display. It can also store the feature data or feature distribution information in the database 1 of the business configuration platform. The feature data, data access, and user interface display can be managed through the management background of the business configuration platform. For another example, the feature data can be analyzed by the data analysis engine elasticsearch or clickhouse, and the powerful data analysis capabilities of the data analysis engine can be used to analyze the threshold distribution and singularity alarm of the feature data. For another example, the feature task can be debugged / run in the sandbox environment based on the converted data and the online service image of the computing engine (i.e., the test environment) to verify whether the feature task is normally available. For another example, the data recorded by online traffic can be saved in a stream based on the persistent storage engine rocksdb, so as to facilitate data backtracking and rerunning when the feature task is abnormal. For another example, by using the effect feedback of the feature data, the efficiency of the feature data can be rated and scored to perform feature evaluation on the feature data. For another example, feature data may be detected and an alarm may be output when an anomaly exists.
[0107] The server of this embodiment can manage each link of the feature calculation cycle, including data source acquisition, feature calculation, feature data flow, feature analysis and traceability evaluation, and organically integrate all layers involved in data processing to obtain a professional and integrated feature calculation system, so that the ecological tools of feature calculation are more complete and more integrated, which can improve data processing efficiency and quality, timely discover anomalies by analyzing feature data, and improve the security of instant messaging operation.
[0108] It is understandable that in the specific implementation of this application, related data such as account numbers and login addresses are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0109] In order to better implement the data processing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above data processing method. The meanings of the terms are the same as those in the above data processing method, and the specific implementation details can refer to the description in the method embodiment.
[0110] See also Fig.17 , Fig.17A structural schematic diagram of a data processing device provided in an embodiment of the present application, wherein the data processing device 300 may include a first acquisition unit 301, a conversion unit 302, a second acquisition unit 303, a determination unit 304, a calculation unit 305, and a processing unit 306, etc.
[0111] The first acquisition unit 301 is used to acquire the data source to be processed and the service type of the data source;
[0112] A conversion unit 302, used to convert the data format of the data source into a target data format to obtain converted data;
[0113] The second acquisition unit 303 is used to acquire characteristic task configuration information matching the service type;
[0114] A determination unit 304, configured to determine a feature calculation strategy for the converted data according to the feature task configuration information;
[0115] A calculation unit 305 is used to perform feature calculation on the converted data according to a feature calculation strategy to obtain feature data;
[0116] The processing unit 306 is used to process the feature data.
[0117] In one implementation, the computing unit 305 may be specifically configured to: perform feature aggregation computing on the converted data through a stream computing engine to obtain aggregated data; and perform feature logic computing on the aggregated data through a logic computing engine to obtain feature data.
[0118] In one embodiment, the computing unit 305 can be specifically used to: perform feature aggregation calculation on the converted data through a stream computing engine to obtain first initial data; perform feature logic calculation on the converted data through a logic computing engine to obtain second initial data; and perform fusion processing on the first initial data and the second initial data to obtain feature data.
[0119] In one implementation, the computing unit 305 may be specifically configured to: perform feature logic computing on the converted data through a logic computing engine to obtain candidate data; and perform feature aggregation computing on the candidate data through a stream computing engine to obtain feature data.
[0120] In one implementation, the computing unit 305 may be specifically configured to: perform feature aggregation computing on the converted data through a stream computing engine to obtain feature data.
[0121] In one implementation, the calculation unit 305 may be specifically configured to: perform characteristic logic calculation on the converted data through a logic calculation engine to obtain characteristic data.
[0122] In one implementation, the logic calculation engine includes a first logic calculation engine, and the calculation unit 304 may include:
[0123] A loading module, used to call a loader to load a feature task corresponding to source data through a first logic computing engine;
[0124] A compiling module, used for compiling the feature task by calling the compiler through the first logic computing engine to obtain a target symbol table;
[0125] The mapping module is used to call the executor through the first logic calculation engine, perform mapping processing on the converted data and the target symbol table, and obtain feature data.
[0126] In one embodiment, the compile module may include:
[0127] The lexical analysis submodule is used to perform lexical analysis on the source code file of the feature task by calling the compiler through the first logic calculation engine to obtain a character stream;
[0128] The syntax analysis submodule is used to perform syntax analysis on the character stream to obtain a syntax tree;
[0129] The first generation submodule is used to generate intermediate code according to the syntax tree;
[0130] The second generation submodule is used to generate a target symbol table according to the intermediate code.
[0131] In one implementation, the lexical analysis submodule may be specifically used to: perform target character filtering on the source code file of the feature task to obtain a filtered code file; and perform character segmentation processing on the filtered code file to obtain a character stream.
[0132] In one implementation, the second generation submodule may be specifically used to: optimize the intermediate code to obtain the optimized intermediate code; perform function linking processing on the functions included in the optimized intermediate code to obtain a target symbol table.
[0133] In one embodiment, the computing unit 305 can be specifically used to: call the management process through the second logical computing engine to add the converted data to the data processing queue; call the working process through the second logical computing engine to perform feature aggregation calculation on the converted data in the data processing queue to obtain feature data.
[0134] In one embodiment, the conversion unit 302 can be specifically used to: obtain an adapter that matches the data format of the data source; perform data protocol parsing on the data source through the adapter to convert the data format of the data source into a target data format to obtain converted data.
[0135] In one implementation, the first acquisition unit 301 may be specifically configured to: acquire a data log stream reported by a scenario service; and generate a data source from the data log stream in the form of a distributed data file.
[0136] In one implementation, the processing unit 306 may be specifically configured to: obtain the state type of the feature data; and store the feature data in a list format in a database matching the state type in the data warehouse.
[0137] In one implementation, the processing unit 306 may be specifically used to: perform feature analysis on feature data to generate feature distribution information; and visualize the feature distribution information.
[0138] In the embodiment of the present application, the first acquisition unit 301 may acquire the data source to be processed and the business type of the data source, and the conversion unit 302 may convert the data format of the data source into the target data format to obtain the converted data, and the second acquisition unit 303 may acquire the feature task configuration information matching the business type, and the determination unit 304 may determine the feature calculation strategy of the converted data according to the feature task configuration information; then the calculation unit 305 may perform feature calculation on the converted data according to the feature calculation strategy to obtain feature data, and at this time, the feature data may be processed by the processing unit 306. The scheme converts the data format through the data source, unifies the data format, so as to adapt to a variety of different data sources, and performs feature calculation on the converted data after the unified data format based on the feature calculation strategy corresponding to the business type, so that the converted data can be adaptively and efficiently calculated according to the different feature calculation strategies corresponding to the feature task configuration information matching different business types, thereby improving the accuracy and efficiency of data processing.
[0139] The present application also provides a computer device, which may be a server. Fig.18 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0140] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Fig.18 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0141] The processor 401 is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the computer device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0142] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0143] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0144] The computer device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0145] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0146] The data source to be processed is obtained, as well as the business type of the data source; the data format of the data source is converted into the target data format to obtain the converted data; the feature task configuration information matching the business type is obtained, and the feature calculation strategy of the converted data is determined according to the feature task configuration information; the feature calculation is performed on the converted data according to the feature calculation strategy to obtain the feature data; and the feature data is processed. The data format is converted through the data source to unify the data format to adapt to a variety of different data sources, and the feature calculation is performed on the converted data after the unified data format based on the feature calculation strategy corresponding to the feature task configuration information matching the business type, so that the feature calculation of the converted data can be adapted and efficiently performed according to the different feature calculation strategies corresponding to different business types, thereby improving the accuracy and efficiency of data processing.
[0147] In the above embodiments, the description of each embodiment has its own focus. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the data processing method above, and will not be repeated here.
[0148] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium (referred to as storage medium). A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations in the above embodiments.
[0149] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by computer instructions, or by controlling related hardware through computer instructions, and the computer instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium (i.e., a computer-readable storage medium) in which a computer program is stored, and the computer program may include computer instructions, and the computer program can be loaded by a processor to execute any of the data processing methods provided in the embodiments of the present application.
[0150] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0151] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0152] Since the instructions stored in the storage medium can execute any data processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0153] The above is a detailed introduction to a data processing method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data processing method, characterized in that: include: Acquire a data source to be processed, and acquire a business type of the data source; Convert the data format of the data source into a target data format to obtain converted data; Acquire characteristic task configuration information matching the business type; Determining a feature calculation strategy for the converted data according to the feature task configuration information; Performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data; The characteristic data is processed.
2. The data processing method according to claim 1, characterized in that: The step of performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data includes: Perform feature aggregation calculation on the converted data through a stream computing engine to obtain aggregated data; The logic calculation engine performs feature logic calculation on the aggregated data to obtain feature data.
3. The data processing method according to claim 1, characterized in that: The step of performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data includes: Performing feature aggregation calculation on the converted data through a stream computing engine to obtain first initial data; Performing characteristic logic calculation on the converted data by a logic calculation engine to obtain second initial data; The first initial data and the second initial data are fused to obtain feature data.
4. The data processing method according to claim 1, characterized in that: The step of performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data includes: Performing feature logic calculation on the converted data by a logic calculation engine to obtain candidate data; The stream computing engine performs feature aggregation calculation on the candidate data to obtain feature data.
5. The data processing method according to claim 1, characterized in that: The step of performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data includes: The stream computing engine performs feature aggregation calculation on the converted data to obtain feature data.
6. The data processing method according to claim 1, characterized in that: The step of performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data includes: The logic calculation engine performs characteristic logic calculation on the converted data to obtain characteristic data.
7. The data processing method according to claim 6, characterized in that: The logic calculation engine includes a first logic calculation engine, and the feature data is obtained by performing feature logic calculation on the converted data by the first logic calculation engine. The feature data is obtained by performing feature logic calculation on the converted data by the first logic calculation engine, including: Calling a loader to load the feature task corresponding to the source data through the first logic computing engine; The first logic computing engine calls a compiler to compile the feature task to obtain a target symbol table; The executor is called by the first logic calculation engine to perform mapping processing on the converted data and the target symbol table to obtain feature data.
8. The data processing method according to claim 7, characterized in that: The calling of a compiler by the first logic computing engine to compile the feature task to obtain a target symbol table includes: Calling a compiler through a first logic computing engine to perform lexical analysis on a source code file of the feature task to obtain a character stream; Performing grammatical analysis on the character stream to obtain a grammatical tree; Generate intermediate code according to the syntax tree; A target symbol table is generated according to the intermediate code.
9. The data processing method according to claim 8, characterized in that: Perform lexical analysis on the source code file of the feature task to obtain a character stream, including: Performing target character filtering on the source code file of the feature task to obtain a filtered code file; The filtered code file is subjected to character segmentation processing to obtain a character stream.
10. The data processing method according to claim 8, characterized in that: The generating of the target symbol table according to the intermediate code comprises: Optimizing the intermediate code to obtain an optimized intermediate code; Perform function linking processing on the functions contained in the optimized intermediate code to obtain a target symbol table.
11. The data processing method according to claim 6, characterized in that: The logic calculation engine includes a second logic calculation engine, and the characteristic data is obtained by performing characteristic logic calculation on the converted data by the second logic calculation engine. The characteristic data is obtained by performing characteristic logic calculation on the converted data by the second logic calculation engine, including: Calling a management process through the second logic computing engine to add the converted data to a data processing queue; The working process is called by the second logic computing engine to perform feature aggregation calculation on the converted data in the data processing queue to obtain feature data.
12. The data processing method according to claim 1, characterized in that: The converting the data format of the data source into the target data format to obtain converted data includes: Obtaining an adapter that matches the data format of the data source; The adapter performs data protocol parsing on the data source to convert the data format of the data source into a target data format to obtain converted data.
13. The data processing method according to claim 1, characterized in that: The obtaining of the data source to be processed includes: Get the data log stream reported by the scenario business; The data log stream is used to generate a data source in the form of a distributed data file.
14. The data processing method according to any one of claims 1 to 13, characterized in that: The processing of the characteristic data comprises: Acquire the state type of the characteristic data; The characteristic data is stored in a list form in a database matching the state type in a data warehouse.
15. The data processing method according to any one of claims 1 to 13, characterized in that: The processing of the characteristic data comprises: Performing feature analysis on the feature data to generate feature distribution information; The feature distribution information is visualized.
16. A data processing device, characterized in that: include: A first acquisition unit, used to acquire a data source to be processed, and acquire a business type of the data source; A conversion unit, used to convert the data format of the data source into a target data format to obtain converted data; A second acquisition unit, used to acquire characteristic task configuration information matching the service type; A determination unit, configured to determine a feature calculation strategy for the converted data according to the feature task configuration information; A calculation unit, used for performing feature calculation on the converted data according to the feature calculation strategy to obtain feature data; A processing unit is used to process the feature data.
17. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the data processing method according to any one of claims 1 to 15 when calling the computer program in the memory.
18. A storage medium, characterized in that: The storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the data processing method according to any one of claims 1 to 15.
