Data processing method, device and electronic equipment applied to ETL
By identifying and synchronizing incremental data in ETL technology, the primary key conflict problem in the data push stage in ETL technology is solved, the data loading efficiency is improved, and the additional overhead of clearing the table is avoided.
Patent Information
- Application Number
- CN202111165389.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-09-30
AI Technical Summary
In ETL technology, during the data push phase, there may be a primary key conflict in the destination table of the service library, which requires clearing the table to ensure normal execution of data writing. However, clearing the table is not only time-consuming but also cannot restore the original data.
By identifying incremental data in the ODS layer and DWD layer, only the incremental data is synchronized to the target service library to avoid primary key conflicts with the target data, thereby eliminating the need to clear the destination table of the service library.
It improves the efficiency of data loading, avoids additional clearing and recovery time, and ensures the normal execution of data writing.
Smart Images

Figure CN113886478B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing technology, and in particular to a data processing method and device and electronic device applied to ETL. Background Art
[0002] ETL (Extract-Transform-Load) is a technology that combines data extraction (extract), data transformation (transform) and data loading (load).
[0003] In a big data project using ETL technology, the following data processing stages are usually included:
[0004] 1. Data access stage, which is used to extract data from the front-end database to the comprehensive database through ETL data extraction technology. The front-end database is the database where the original data is located, and the comprehensive database is the database of the big data platform.
[0005] 2. Data development phase, which is used to process the data extracted into the comprehensive database through ETL data conversion technology. The processing may include data management methods such as data cleaning and data fusion.
[0006] 3. The data push phase is used to synchronize the data to be loaded in the comprehensive database after data conversion to the service database through ETL data loading technology.
[0007] 4. The data service stage is used to provide the data in the service library to the application through the ETL data transmission technology. For example, the data service system provides data services to the application based on the data in the service library through a preset network interface such as REST API.
[0008] Among them, in the data push stage, when the data to be loaded output after data conversion is synchronized to the service library, since there may be a primary key conflict between the data in the service library's destination table (the table where the data to be loaded is written) and the data to be loaded, in order to ensure the normal execution of data writing, it is necessary to first clear the destination table in the service library, and then write all the data to be loaded into the cleared destination table.
[0009] However, clearing the target table not only takes extra time, but also the data originally stored in the target table cannot be recovered after being cleared. Summary of the invention
[0010] The embodiments of this specification provide a data processing method, device, and electronic device applied to ETL.
[0011] According to a first aspect of an embodiment of this specification, a data processing method applied to ETL is provided, the method comprising:
[0012] Perform data governance on the data in the new table of the ODS layer to generate a new table of the STD layer; wherein the new table of the ODS layer is used to store the unprocessed data obtained after the current round of ETL execution data extraction; the new table of the STD layer is used to store the standardized data obtained after the current round of ETL execution data governance;
[0013] Compare the new table of the STD layer with the old table to identify incremental data in the new table of the STD layer; wherein the old table of the STD layer is used to store standardized data obtained after the previous round of ETL execution of data governance;
[0014] Perform data development on the data in the new table of the STD layer to generate a new table of the DWD layer; wherein the new table of the DWD layer is used to store the data to be loaded obtained after the data development is performed in this round of ETL;
[0015] Comparing the new table of the DWD layer with the old table to identify incremental data in the new table of the DWD layer; wherein the old table of the DWD layer is used to store the data to be loaded obtained after the previous round of ETL execution data development;
[0016] The incremental data in the STD layer and / or DWD layer is written into the target service library.
[0017] According to a second aspect of an embodiment of this specification, a data processing device applied to ETL is provided, the device comprising:
[0018] The first generation module is used to perform data governance on the data in the new table of the ODS layer to generate a new table of the STD layer; wherein the new table of the ODS layer is used to store the unprocessed data obtained after the current round of ETL execution data extraction; the new table of the STD layer is used to store the standardized data obtained after the current round of ETL execution data governance;
[0019] A first identification module is used to compare the new table of the STD layer with the old table to identify the incremental data in the new table of the STD layer; wherein the old table of the STD layer is used to store the standardized data obtained after the previous round of ETL execution of data governance;
[0020] The second generation module is used to perform data development on the data in the new table of the STD layer to generate a new table of the DWD layer; wherein the new table of the DWD layer is used to store the data to be loaded after the data development is performed in this round of ETL;
[0021] A second identification module is used to compare the new table of the DWD layer with the old table to identify the incremental data in the new table of the DWD layer; wherein the old table of the DWD layer is used to store the data to be loaded obtained after the previous round of ETL execution data development;
[0022] A data loading module is used to write the incremental data in the STD layer and / or the DWD layer into a target service library.
[0023] According to a third aspect of the embodiments of this specification, there is provided an electronic device, including:
[0024] processor;
[0025] a memory for storing processor-executable instructions;
[0026] The processor is configured as any one of the data processing methods applied to ETL in this specification.
[0027] The embodiments of this specification provide a data processing solution for ETL, which identifies the incremental data in the data to be loaded and synchronizes only the incremental data to the service library. Since there is no primary key conflict between the incremental data and the data in the target service library, data can be written normally even if the target table of the service library is not cleared. In this way, since there is no need to clear the target table of the service library, the efficiency of data loading is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of a big data project using existing ETL technology provided in an embodiment of this specification;
[0029] Figure 2 is a flow chart of a data processing method applied to ETL provided by an embodiment of this specification;
[0030] Figure 3 It is a schematic diagram of a big data project using improved ETL technology provided in an embodiment of this specification;
[0031] Figure 4 is a hardware structure diagram of a data processing device applied to ETL provided by an embodiment of this specification;
[0032] Figure 5 It is a module diagram of a data processing device applied to ETL provided in one embodiment of this specification. DETAILED DESCRIPTION
[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0034] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0035] It should be understood that although the terms first, second, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0036] In big data projects using existing ETL technologies, such as Figure 1 The ETL shown usually includes the following data processing stages:
[0037] 1. Data access stage. The control end of ETL extracts data from the front-end database to the comprehensive database through ETL data extraction technology. The front-end database is the database where the original data is located, and the comprehensive database is the database of the big data platform.
[0038] 2. Data development stage. The control end of ETL processes the data extracted into the comprehensive database through ETL data conversion technology. The processing may include data management methods such as data cleaning and data fusion.
[0039] 3. Data push stage: The ETL control end uses ETL data loading technology to synchronize the data to be loaded in the comprehensive database after data conversion to the service database.
[0040] 4. Data service stage. The control end of ETL provides the data in the service library to the application through the data transmission technology of ETL. For example, the data service system provides data services to the application based on the data in the service library through a preset network interface such as REST API.
[0041] Among them, in the data push stage, when the data to be loaded output after data conversion is synchronized to the service library, since there may be a primary key conflict between the data in the service library's destination table (the table where the data to be loaded is written) and the data to be loaded, in order to ensure the normal execution of data writing, it is necessary to first clear the destination table in the service library, and then write all the data to be loaded into the cleared destination table.
[0042] However, clearing the target table not only takes extra time, but also the data originally stored in the target table cannot be recovered after being cleared.
[0043] In order to solve the above problems, the present application aims to provide an ETL data loading solution that does not require clearing the target table of the service library and can also normally write the data to be loaded, thereby improving the efficiency of data writing.
[0044] Specifically, by identifying the incremental data in the data to be loaded, only the incremental data is synchronized to the service library. Since there is no primary key conflict between the incremental data and the data in the target service library, data can be written normally even if the target table of the service library is not cleared. In this way, since there is no need to clear the target table of the service library, the efficiency of data loading is improved.
[0045] The following can be referenced Figure 2 A data processing method applied to ETL is described as an example, and the method includes:
[0046] Step 110, perform data governance on the data in the new table of the ODS layer to generate a new table of the STD layer; wherein the new table of the ODS layer is used to store the unprocessed data obtained after the current round of ETL execution data extraction; the new table of the STD layer is used to store the standardized data obtained after the current round of ETL execution data governance;
[0047] Step 120, comparing the new table of the STD layer with the old table to identify incremental data in the new table of the STD layer; wherein the old table of the STD layer is used to store standardized data obtained after the previous round of ETL execution of data governance;
[0048] Step 130, performing data development on the data in the new table of the STD layer to generate a new table of the DWD layer; wherein the new table of the DWD layer is used to store the data to be loaded obtained after the data development is performed in this round of ETL;
[0049] Step 140, comparing the new table of the DWD layer with the old table to identify incremental data in the new table of the DWD layer; wherein the old table of the DWD layer is used to store the data to be loaded obtained after the previous round of ETL execution data development;
[0050] Step 150: write the incremental data in the STD layer and / or DWD layer into the target service library.
[0051] The following combination Figure 3 The schematic diagram of the big data project system with improved ETL technology provided by this embodiment is shown. Figure 1 Compared with the big data project system of the existing ETL technology shown in the figure, it is necessary to layer the comprehensive library, that is, Figure 3The comprehensive library is divided into ODS layer, STD layer and DWD layer.
[0052] The comprehensive library is the database of the big data platform, and each layer of the comprehensive library can correspond to a data table. The STD layer and the DWD layer are both configured with new tables and old tables; the new table is used to store the data of the current round of ETL, and the old table is used to store the data of the previous round of ETL.
[0053] like Figure 3 As shown, the data access stage. Through the ETL data extraction technology, the data is extracted from the front-end database to the ODS layer of the comprehensive database. The front-end database is the database where the original data is located. Among them, the data in the ODS layer can be partitioned and stored according to the different extraction times. This facilitates data management.
[0054] In this manual, ETL data transformation is divided into two parts: data governance and data development.
[0055] Among them, in the data governance stage, the data in the ODS layer is governed (such as merging and deduplicating data) through the data governance function provided by the ETL data conversion technology, and standardized data is output according to the actual data standard, and the standardized data is stored in the new table of the STD layer.
[0056] Data development stage. Through the data development function provided by ETL data conversion technology, data development is performed on the standardized data stored in the new table of the STD layer. For example, a corresponding data model is established according to the characteristics of the data, and the standardized data is processed based on the data model to obtain data that is of practical significance to the business (such as population property information, population basic information, etc.). These processed data will be stored in the new table of the DWD layer.
[0057] Data push stage: Through ETL data loading technology, the incremental data in the STD layer and / or DWD layer is synchronized to the target service library as the data to be loaded.
[0058] Since the data finally written to the target service library is incremental data, it will not conflict with the data in the target service library's target table, and there is no need to clear the target table.
[0059] It should be noted that the above STD layer and DWD layer adopt an incremental design method:
[0060] For the new tables corresponding to the STD layer and the DWD layer, a time column and a status column can be added to the new table, which are used to record the time field (UPDATE) and the status field (DEL) corresponding to the data, respectively. The time field is used to record the update time of the data, and the status field is used to record whether the data is newly added.
[0061] In an exemplary embodiment, the step 120 of comparing the new table of the STD layer with the old table may include:
[0062] For data that exists in the new table of the STD layer but does not exist in the old table of the STD layer, the status field of the data in the new table of the STD layer is set to the first state (for example, TRUE), and the time field of the data is updated (updated to the moment when the first state is set); wherein the first state indicates that the data is newly added data.
[0063] For data that exists in the new table of the STD layer and also exists in the old table of the STD layer, the data content of the data in the new table and the old table is further compared; if the data content is inconsistent (indicating that the data has been updated compared with the previous round), the time field of the data in the new table of the STD layer is updated (updated to the comparison time of the data content). If it is consistent, it is not processed.
[0064] In addition, for data that does not exist in the new table of the STD layer but exists in the old table of the STD layer, it means that the data in the old table has been deleted. At this time, the data can be added to the new table of the STD layer and marked to indicate that the data has been deleted.
[0065] Through the above examples, we can identify new data (i.e. data that did not exist historically), updated data (i.e. data that existed historically but has updated data content), and deleted data (i.e. data that was historically stored but does not currently exist) in the process from the ODS layer to the STD layer. These data can all be used as incremental data for this round of ETL in the ODS layer.
[0066] After identifying the incremental data in the new table of the STD layer, the present specification may further execute step 130 to perform data development on the data in the new table of the STD layer to generate a new table of the DWD layer.
[0067] Since the data of the STD layer and the DWD layer have been converted, it is difficult to effectively identify the incremental data by direct comparison. Therefore, the data in the new table of the STD layer can be developed in advance according to the conversion algorithm during data development, specifically, the conversion algorithm during data development can be executed according to the STD layer, and the generated data can be stored in the new table of the DWD layer. Then step 140 can be executed.
[0068] In an exemplary embodiment, the step 140 of comparing the new table of the DWD layer with the old table may include:
[0069] For data that exists in the new table of the DWD layer but does not exist in the old table of the DWD layer, the status field of the data in the new table of the DWD layer is set to the first state (for example, TRUE), and the time field of the data is updated (updated to the moment when the first state is set); wherein the first state indicates that the data is newly added data.
[0070] For the data that exists in the new table of the DWD layer and also exists in the old table of the DWD layer, the data content of the data in the new table and the old table is further compared; if the data content is inconsistent (indicating that the data has been updated compared with the previous round), the time field of the data in the new table of the DWD layer is updated (updated to the comparison time of the data content). If it is consistent, it will not be processed.
[0071] For data that does not exist in the new table of the DWD layer but exists in the old table of the DWD layer, it means that the data in the old table has been deleted. At this time, the data can be added to the new table of the DWD layer and marked to indicate that the data has been deleted.
[0072] Through the above examples, we can identify new data (i.e. data that did not exist historically), updated data (i.e. data that existed historically but has updated data content), and deleted data (i.e. data that was historically stored but does not currently exist) in the process from the STD layer to the DWD layer. These data can all be used as incremental data for this round of ETL in the DWD layer.
[0073] After the incremental data in the new table of the DWD layer is identified, the incremental data in the DWD layer can be written into the target service library, wherein the incremental data in the DWD layer includes data whose time corresponding to the time field in the new table of the DWD layer is after the start time of this round of ETL.
[0074] In addition, since the incremental data in the new table of the ODS layer is also identified, in some embodiments, data development may not be performed, and the incremental data in the new table of the ODS layer may be directly written into the target service library. The incremental data in the STD layer includes data whose time field in the new table of the STD layer corresponds to a time after the start time of this round of ETL.
[0075] By applying the above technical solution, by identifying the incremental data in the data to be loaded, only the incremental data is synchronized to the service library. Since there is no primary key conflict between the incremental data and the data in the target service library, data can be written normally even if the target table of the service library is not cleared. In this way, since there is no need to clear the target table of the service library, the efficiency of data loading is improved.
[0076] Corresponding to the aforementioned data processing method embodiment applied to ETL, this specification also provides an embodiment of a data processing device applied to ETL. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the device in which it is located reading the corresponding computer business program instructions in the non-volatile memory into the memory for execution. From the hardware level, such as Figure 4 The figure is a hardware structure diagram of the device where the data processing device of ETL is located in this specification, except Figure 4 In addition to the processor, network interface, memory and non-volatile memory shown, the device in the embodiment where the apparatus is located may also include other hardware according to the actual function of data processing applied to ETL, which will not be described in detail.
[0077] See also Figure 5 , is a block diagram of a data processing device applied to ETL provided in an embodiment of this specification, and the device corresponds to Figure 2 In the embodiment shown, the device comprises:
[0078] The first generation module 310 is used to perform data governance on the data in the new table of the ODS layer to generate a new table of the STD layer; wherein the new table of the ODS layer is used to store the unprocessed data obtained after the current round of ETL execution data extraction; the new table of the STD layer is used to store the standardized data obtained after the current round of ETL execution data governance;
[0079] A first identification module 320 is used to compare the new table of the STD layer with the old table to identify the incremental data in the new table of the STD layer; wherein the old table of the STD layer is used to store the standardized data obtained after the previous round of ETL execution of data governance;
[0080] The second generating unit 330 is used to perform data development on the data in the new table of the STD layer to generate a new table of the DWD layer; wherein the new table of the DWD layer is used to store the data to be loaded obtained after the data development is performed in this round of ETL;
[0081] The second identification module 340 is used to compare the new table of the DWD layer with the old table to identify the incremental data in the new table of the DWD layer; wherein the old table of the DWD layer is used to store the data to be loaded obtained after the previous round of ETL execution data development;
[0082] The data loading module 350 is used to write the incremental data in the STD layer and / or the DWD layer into the target service library.
[0083] In an exemplary embodiment, the data in the new tables of the STD layer and the DWD layer are also configured with a time field and a status field; wherein the time field is used to record the update time of the old data, and the status field is used to record whether the data is new data.
[0084] In an exemplary embodiment, the first identification module 320 is also used to set the status field of the data in the new table of the STD layer to the first status and update the time field of the data for data that exists in the new table of the STD layer but does not exist in the old table of the STD layer; wherein the first status indicates that the data is newly added data.
[0085] In an exemplary embodiment, the first identification module 320 is also used to further compare the data content of the data in the new table and the old table that exist in the new table of the STD layer and also exist in the old table of the STD layer; if the data content is inconsistent, the time field of the data in the new table of the STD layer is updated.
[0086] In an exemplary embodiment, the first identification module 320 is also used to add data that does not exist in the new table of the STD layer but exists in the old table of the STD layer to the new table of the STD layer, and mark the data to indicate that the data has been deleted.
[0087] In an exemplary embodiment, the second identification module 340 is also used to set the status field of the data in the new table of the DWD layer to the first status and update the time field of the data for the data that exists in the new table of the DWD layer but does not exist in the old table of the DWD layer; wherein the first status indicates that the data is newly added data.
[0088] In an exemplary embodiment, the second identification module 340 is also used to further compare the data content of the data in the new table of the DWD layer and the old table of the DWD layer; if the data content is inconsistent, the time field of the data in the new table of the DWD layer is updated.
[0089] In an exemplary embodiment, the second identification module 340 is also used to add data that does not exist in the new table of the DWD layer but exists in the old table of the DWD layer to the new table of the DWD layer, and mark the data to indicate that the data has been deleted.
[0090] In an exemplary embodiment, the incremental data in the DWD layer includes data in the new table of the DWD layer whose time corresponding to the time field is after the start time of this round of ETL.
[0091] In an exemplary embodiment, the incremental data in the STD layer includes data corresponding to the time field in the new table of the STD layer that is located after the start time of this round of ETL.
[0092] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0093] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0094] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.
[0095] The internal functional modules and structural schematic diagram of the data processing device applied to ETL described above may be executed by an electronic device, including:
[0096] processor;
[0097] a memory for storing processor-executable instructions;
[0098] The processor is configured to execute the data processing method applied to ETL described in any of the aforementioned embodiments.
[0099] In the above-mentioned embodiment of the electronic device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor, etc., and the aforementioned memory can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk or a solid-state drive. The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0100] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0101] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention disclosed herein. The specification is intended to cover any variations, uses, or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not disclosed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.
[0102] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
Claims
1. A data processing method applied to ETL, characterized in that: The method comprises: The comprehensive library is layered into an ODS layer, a STD layer, and a DWD layer, wherein the comprehensive library is a database of a big data platform, and each layer of the comprehensive library corresponds to a data table; Perform data governance on the data in the new table of the ODS layer to generate a new table of the STD layer; wherein the new table of the ODS layer is used to store the unprocessed data obtained after the current round of ETL execution of data extraction; the new table of the STD layer is used to store the standardized data obtained after the current round of ETL execution of data governance; the data governance is to merge and remove duplicates of the data; Compare the new table of the STD layer with the old table to identify incremental data in the new table of the STD layer; wherein the old table of the STD layer is used to store standardized data obtained after the previous round of ETL execution of data governance; Perform data development on the data in the new table of the STD layer to generate a new table of the DWD layer; wherein the new table of the DWD layer is used to store the data to be loaded obtained after the data development is performed in this round of ETL; the data development is to establish a corresponding data model according to the characteristics of the data, and process the standardized data based on the data model; Comparing the new table of the DWD layer with the old table to identify incremental data in the new table of the DWD layer; wherein the old table of the DWD layer is used to store the data to be loaded obtained after the previous round of ETL execution data development; The incremental data in the STD layer and / or DWD layer is written into the target service library.
2. The method according to claim 1, characterized in that: The data in the new tables of the STD layer and the DWD layer are also configured with a time field and a status field; wherein the time field is used to record the update time of the data, and the status field is used to record whether the data is newly added data.
3. The method according to claim 2, characterized in that The comparing of the new table of the STD layer with the old table includes: For data that exists in the new table of the STD layer but does not exist in the old table of the STD layer, the status field of the data in the new table of the STD layer is set to the first status, and the time field of the data is updated; wherein the first status indicates that the data is newly added data.
4. The method according to claim 3, characterized in that Also includes: For data that exists in the new table of the STD layer and also exists in the old table of the STD layer, further compare the data content of the data in the new table and the old table; If the data content is inconsistent, the time field of the data in the new table of the STD layer is updated.
5. The method according to claim 3, characterized in that: Also includes: For data that does not exist in the new table of the STD layer but exists in the old table of the STD layer, the data is added to the new table of the STD layer and marked to indicate that the data has been deleted.
6. The method according to claim 2, characterized in that The comparing the new table of the DWD layer with the old table comprises: For data that exists in the new table of the DWD layer but does not exist in the old table of the DWD layer, the status field of the data in the new table of the DWD layer is set to the first status, and the time field of the data is updated; wherein the first status indicates that the data is newly added data.
7. The method according to claim 6, characterized in that Also includes: For the data that exists in the new table of the DWD layer and also exists in the old table of the DWD layer, further compare the data content of the new table and the old table; If the data content is inconsistent, the time field of the data in the new table of the DWD layer is updated.
8. The method according to claim 6, characterized in that include: For data that does not exist in the new table of the DWD layer but exists in the old table of the DWD layer, the data is added to the new table of the DWD layer and marked to indicate that the data has been deleted.
9. The method according to claim 2, characterized in that: The incremental data in the DWD layer includes data in which the time corresponding to the time field in the new table of the DWD layer is after the start time of this round of ETL.
10. The method according to claim 2, characterized in that The incremental data in the STD layer includes data in which the time corresponding to the time field in the new table of the STD layer is after the start time of this round of ETL.
11. A data processing device applied to ETL, characterized in that: The device comprises: A stratification unit is used to stratify the comprehensive library into ODS layer, STD layer and DWD layer, wherein the comprehensive library is a database of the big data platform, and each layer of the comprehensive library corresponds to a data table; The first generation module is used to perform data governance on the data in the new table of the ODS layer to generate a new table of the STD layer; wherein the new table of the ODS layer is used to store the unprocessed data obtained after the current round of ETL execution of data extraction; the new table of the STD layer is used to store the standardized data obtained after the current round of ETL execution of data governance; the data governance is to merge and remove duplicates of the data; A first identification module is used to compare the new table of the STD layer with the old table to identify the incremental data in the new table of the STD layer; wherein the old table of the STD layer is used to store the standardized data obtained after the previous round of ETL execution of data governance; The second generation module is used to perform data development on the data in the new table of the STD layer to generate a new table of the DWD layer; wherein the new table of the DWD layer is used to store the data to be loaded obtained after the current round of ETL performs data development; the data development is to establish a corresponding data model according to the characteristics of the data, and process the standardized data based on the data model; A second identification module is used to compare the new table of the DWD layer with the old table to identify the incremental data in the new table of the DWD layer; wherein the old table of the DWD layer is used to store the data to be loaded obtained after the previous round of ETL execution data development; A data loading module is used to write the incremental data in the STD layer and / or the DWD layer into a target service library.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 10.
