Method, device and non-volatile storage medium for determining broken link data

By using the table primary key and closed-chain date as the row primary key and key value of the distributed database in the big data platform, business data comparison is performed, which solves the problem of low efficiency of broken chain data query in the existing technology, and achieves memory saving and calculation Improved efficiency.

CN112749167BActive Publication Date: 2024-10-08中国邮政储蓄银行股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110064688.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-18
Publication Date
2024-10-08
Estimated Expiration
2041-01-18

AI Technical Summary

Technical Problem

In the existing technology, the solution for querying broken link data is grouped by primary key and sorted according to the open link date, which results in high computer memory resource consumption and long running time, affecting computing efficiency.

Method used

By obtaining the data linked list in the big data platform, using the table primary key and closed-link date as the row primary key and key value of the distributed open source database, we can compare the business data with the stored data to determine whether the business data is broken-link data and save memory. resources and improve computing efficiency.

Benefits of technology

This saves computer memory resources, shortens the running time, improves the calculation efficiency of determining broken link data, and solves the problem of low efficiency in querying broken link data in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112749167B_ABST
    Figure CN112749167B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and non-volatile storage medium for determining broken link data. The method includes: obtaining a data linked list in a big data platform, the data linked list includes: a table primary key and a closed link date; using the table primary key and the closed link date as the row primary key and key value of a distributed open source database respectively; when detecting that the big data platform has received business data, comparing the business data with the stored data in the distributed open source database based on the row primary key and the key value to determine whether the business data is broken link data. The present invention solves the technical problem that the scheme for querying broken link data in the prior art is grouped by primary key and sorted by open link date, which consumes a large amount of computer memory resources and has a long running time, affecting computing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method and device for determining broken link data and a non-volatile storage medium. Background Art

[0002] In the prior art, when executing the operation of storing source system data into the big data platform, the problem of how to discover the broken chain of business data is solved. The current processing method is as follows: using the Hive data warehouse tool, write HQL statements to group the zipper table by primary key and sort by the opening date; store the results of the previous grouping and sorting in a temporary table to reduce memory overhead; self-associate the temporary table, and query the data with the same primary key but the closing date of the previous business data is not equal to the opening date of the data. If such data exists, it means that the business data is broken.

[0003] However, the above-mentioned scheme for querying broken link data has the following disadvantages: since the data volume in many tables is large, grouping by primary key and sorting by the opening date will consume a lot of computer memory resources and take a long time to run, affecting the computing efficiency.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a method, device and non-volatile storage medium for determining broken link data, so as to at least solve the technical problem that the scheme for querying broken link data in the prior art groups the data according to the primary key and sorts them according to the date of opening the link, which consumes a large amount of computer memory resources and has a long running time, thus affecting the computing efficiency.

[0006] According to one aspect of an embodiment of the present invention, a method for determining broken link data is provided, comprising: obtaining a data linked list in a big data platform, the data linked list comprising: a table primary key and a closed link date; using the table primary key and the closed link date as a row primary key and a key value of a distributed open source database, respectively; when detecting that the big data platform has received business data, comparing the business data with the stored data in the distributed open source database based on the row primary key and the key value to determine whether the business data is broken link data.

[0007] Optionally, the business data is sent to the big data platform in at least the following ways: all business data generated in the daily business process is acquired through a business source system, and the business data is sent to the big data platform through a service bus.

[0008] Optionally, the method further includes: after the big data platform receives the business data, parsing the business data to obtain a parsing result, and verifying whether the business data is completely transmitted based on the parsing result, wherein at least the field name, number of fields, and field type of the business data are verified.

[0009] Optionally, the business data and the storage data in the distributed open source database are compared based on the row primary key and the key value to determine whether the business data is broken link data, including: if the business data does not exist in the big data platform, then based on the row primary key and the key value, the business data is compared with the storage data to determine whether the storage data contains the business data; if the storage data does not contain the business data, an open chain operation is performed on the big data platform to add the business data, and the latest valid status of the business data is recorded; if the storage data contains the business data, the business data is determined to be the broken link data.

[0010] Optionally, the business data and the storage data in the distributed open source database are compared based on the row primary key and the key value to determine whether the business data is broken link data, including: if the business data exists in the big data platform, then based on the row primary key and the key value, the business data is compared with the storage data to determine whether the storage data contains the business data; if the storage data contains the business data, field analysis is performed on the business data, and if there is a difference between the field of the business data and the field of the existing business data, a closed chain operation is performed on the big data platform, and a reopened chain operation is performed on the big data platform to add the business data, and the latest valid status of the business data is recorded.

[0011] Optionally, the method further includes: if the business data exists in the big data platform and does not exist in the business source system, a closed-chain operation is performed on the big data platform and the business data is marked as invalid.

[0012] According to another aspect of an embodiment of the present invention, a device for determining broken link data is also provided, including: an acquisition module, used to acquire a data linked list in a big data platform, the data linked list including: a table primary key and a closed link date; a processing module, used to use the table primary key and the closed link date as a row primary key and a key value of a distributed open source database, respectively; a determination module, used to compare the business data with the stored data in the distributed open source database based on the row primary key and the key value when detecting that the big data platform has received business data, so as to determine whether the business data is broken link data.

[0013] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, wherein the non-volatile storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing any one of the above methods for determining broken link data.

[0014] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the program is configured to execute any one of the above-mentioned methods for determining broken link data when running.

[0015] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above methods for determining broken link data.

[0016] In an embodiment of the present invention, by obtaining a data linked list in a big data platform, the data linked list includes: a table primary key and a closed link date; the table primary key and the closed link date are used as the row primary key and key value of a distributed open source database respectively; when it is detected that the big data platform has received business data, the business data and the stored data in the distributed open source database are compared based on the row primary key and the key value to determine whether the business data is broken link data, thereby achieving the purpose of saving computer memory resources and short running time, thereby achieving the technical effect of improving the computing efficiency of determining broken link data, and further solving the technical problem that the solution for querying broken link data in the prior art is grouped according to the primary key and sorted according to the open link date, which consumes a large amount of computer memory resources and has a long running time, affecting the computing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 is a flow chart of a method for determining broken link data according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of an optional method for determining broken link data according to an embodiment of the present invention;

[0020] Figure 3 It is a structural schematic diagram of a device for determining broken link data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0023] First, to facilitate understanding of the embodiments of the present invention, some terms or nouns involved in the present invention are explained below:

[0024] Hadoop: A distributed system infrastructure that allows users to develop distributed programs without understanding the underlying details of the distribution and fully utilize the power of the cluster for high-speed computing and storage.

[0025] Hive: A Hadoop-based data warehouse tool used for data extraction, transformation, and loading. It is a mechanism for storing, querying, and analyzing large-scale data stored in Hadoop.

[0026] HQL: SQL statements run on the Hive data warehouse.

[0027] HBase: A distributed, column-oriented open source database based on Hadoop. Unlike general relational databases, HBase is suitable for storing unstructured data. Its advantage is high performance, which can realize millisecond-level queries on data.

[0028] Zipper table: A data model in the data warehouse, which is a table that maintains historical status and the latest status data. The zipper table is actually equivalent to a snapshot according to the different zipper granularity, but it has been optimized to remove some of the unchanged probabilities. The zipper table can easily restore the customer records at the zipper time point. The advantage is that it can not only reflect the historical status of the data, but also save storage to the greatest extent; by incrementing the start_date (open chain date) and end_date (closed chain date) fields on the basis of the original table, the required data is selected through the date field and the open chain date of the next data is the same as the close chain date of the previous data.

[0029] Zipper table broken link: Broken link is a phenomenon in the zipper table, which refers to the situation where the historical state of the data is missing and discontinuous.

[0030] Cause of link break: When the source system was sending the full amount of data, it failed to send a certain piece of data to the big data platform due to business changes or technical reasons. As a result, the big data platform thought that the data was invalid and closed the link. However, the source system subsequently resent the data and opened the link again, resulting in a data link break. That is, the data was missing for a period of time.

[0031] Before understanding the present application solution, we must first understand the definition of the zipper table and the meaning of the broken chain, as well as the current data processing flow of the big data platform for the business source system. The following embodiment of the present application takes Hadoop as the big data platform architecture and Hive as the data warehouse as an example:

[0032] Zipper table open chain data: It is now agreed that '21001231' is the closed chain date, that is, the current valid data.

[0033] Zipper table closed chain data: the closed chain date is the data of a previous historical date.

[0034] Zipper table closing operation: Change the closing date of the data from '21001231' to today's date, indicating that the status of the data ends on this day.

[0035] Zipper table open chain operation: refers to adding a new data, the data open chain date is today's date, and the closed chain date is '21001231', indicating the latest status of the data.

[0036] By using the customer account as the unique identifier, the zipper table records the changes in the account balance, as shown below:

[0037] The customer opened an account on February 10, 2020 and deposited 3,600 yuan; a transaction occurred on February 27, 2020, and the account balance became 3,800 yuan, and has not changed since then; a transaction occurred on March 3, 2020, and the account balance became 4,000 yuan, and has not changed since then; a transaction occurred on March 18, 2020, and the account balance became 4,800 yuan, and has not changed since then.

[0038] Correct data in the zipper table:

[0039]

[0040] As can be seen from the above data, the above data records in detail the value of the customer account balance within a certain period of time, and its changes over the entire time range;

[0041] 1. February 10, 2020 is the date when the customer opened an account, and it is also the date when the data of sequence number 1 was generated, that is, its chain opening date is 20200210; its chain closing date in sequence number 1 is the same as the chain opening date of sequence number 2, because a transaction was generated on February 27, 2020, and the account balance became 3,800 yuan, so sequence number 1 performed a chain closing operation, and the chain closing date was 20200227; at the same time, the data of sequence number 2 was generated, and the chain opening date of sequence number 2 was 20200227.

[0042] 2. As the account balance continues to change, it becomes 4,000 yuan on March 3, 2020. Sequence number 2 performs a closed chain operation and sequence number 3 performs an open chain operation. The closed chain date in sequence number 2 and the open chain date in sequence number 3 are the same, both are 20200303.

[0043] 3. Similarly, after the account balance becomes 4,800 yuan, sequence number 3 performs a closed chain operation and sequence number 4 performs an open chain operation. The closed chain date in sequence number 3 and the open chain date in sequence number 4 are the same.

[0044] 4. Sequence number 4 is the latest status of the customer's account balance. The account balance is 4,800 yuan. Its closed date is 21001231, which represents the future time of December 31, 2100. We use this date as an agreement to indicate that the data is currently valid data. Sequence numbers 1, 2, and 3 are all historical status data.

[0045] The following takes a bank card customer account number and its account balance as an example:

[0046] Broken chain data in the zipper table:

[0047]

[0048] It can be seen from the above table that the closing date of sequence number 3 and the opening date of sequence number 4 are inconsistent. This is a broken link phenomenon, indicating that the status information of the above business data is missing between March 18, 2020 and April 23, 2020.

[0049] Example 1

[0050] According to an embodiment of the present invention, an embodiment of a method for determining broken link data is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0051] Figure 1 is a flow chart of a method for determining broken link data according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0052] Step S102, obtaining a data linked list in the big data platform, the data linked list including: a table primary key and a closed link date;

[0053] Step S104, using the table primary key and the closed link date as the row primary key and key value of the distributed open source database respectively;

[0054] Step S106, when it is detected that the big data platform receives the business data, the business data is compared with the stored data in the distributed open source database based on the row primary key and the key value to determine whether the business data is broken link data.

[0055] In an embodiment of the present invention, by obtaining a data linked list in a big data platform, the data linked list includes: a table primary key and a closed link date; the table primary key and the closed link date are used as the row primary key and key value of a distributed open source database respectively; when it is detected that the big data platform has received business data, the business data and the stored data in the distributed open source database are compared based on the row primary key and the key value to determine whether the business data is broken link data, thereby achieving the purpose of saving computer memory resources and short running time, thereby achieving the technical effect of improving the computing efficiency of determining broken link data, and further solving the technical problem that the solution for querying broken link data in the prior art is grouped according to the primary key and sorted according to the open link date, which consumes a large amount of computer memory resources and has a long running time, affecting the computing efficiency.

[0056] This application is based on a big data platform and is applicable to different technical architectures such as Storm, Hadoop, Spark, etc. It is a technical solution for optimizing a certain data quality verification item (zipper table broken link) in the processing flow of business source system data.

[0057] It should be noted that the embodiments of the present application can be applied to financial institutions such as banks or financial service institutions. Through the present invention, it is possible to determine the broken link data in the zipper table, save computer memory resources, and improve the efficiency of the query, and the business data with broken links can be quickly located.

[0058] The embodiments of the present application are based on big data distributed high-speed cache, for example, Hbase (distributed column-oriented open source database, nosql database, rowkey acts as the primary key, row key in the process of adding, deleting, modifying and checking), Redis (high-performance key-value database), etc.

[0059] In the following embodiments of the present application, Hbase is used as an example for explanation. Based on the characteristic of fast query through the Hbase row key rowkey, the closed table data is stored in Hbase with the table primary key as the Hbase row key; each time the big data platform inserts business data, it searches Hbase with the primary key information of the newly added data as the rowkey. If no data is found, it means that the data has not been stored before, indicating that there is no problem, and the business data is normally stored in the big data platform; if the data can be found, it means that the data is broken, and it is necessary to analyze the data to find out the cause of the break and complete the break information.

[0060] In an optional embodiment, Figure 2 is a flow chart of an optional method for determining broken link data according to an embodiment of the present invention. Figure 2 As shown, the business data is sent to the big data platform in at least the following ways:

[0061] Step S202, all business data generated in the daily business process are obtained through the business source system, and the above business data are sent to the above big data platform through the service bus.

[0062] In an embodiment of the present application, for example, all business data generated during the daily business process of a financial institution can be obtained through a business source system, and the business data in the business source system can be sent to the above-mentioned big data platform through a service bus.

[0063] In an optional embodiment, Figure 2 As shown, the above method also includes:

[0064] Step S204, after the big data platform receives the business data, it parses the business data to obtain a parsing result, and verifies whether the business data is completely transmitted based on the parsing result, wherein at least the field name, number of fields, and field type of the business data are verified.

[0065] In an embodiment of the present application, after the big data platform receives the business data, the business data is parsed and the integrity of the data during the transmission process and the consistency of the metadata of both parties (for example, field name, number of fields, field type, etc.) are verified; and after successful verification, the data of the business source system and the valid data of the big data platform are fully connected according to the primary key for data comparison.

[0066] In an optional embodiment, comparing the business data with the stored data in the distributed open source database based on the row primary key and the key value to determine whether the business data is broken link data includes:

[0067] Step S302: if the business data does not exist in the big data platform, then based on the row primary key and the key value, the business data is compared with the stored data to determine whether the stored data contains the business data;

[0068] Step S304: if the business data is not included in the stored data, an open link operation is performed on the big data platform to add the business data, and the latest valid status of the business data is recorded;

[0069] Step S306: If the stored data includes the business data, it is determined that the business data is the broken link data.

[0070] In an embodiment of the present application, if the business data exists in the source system but not in the big data platform, first determine whether the data is in Hbase, and use the primary key as the rowkey for query. If no data is found, it means that this is newly added data in the source system. The big data platform performs an open link operation, adds a new data, and records the latest valid status of the data. If the data can be found, it means that the primary key data has become invalid data before, and if the big data platform is entered again, broken link data will be generated.

[0071] In an optional embodiment, comparing the business data with the stored data in the distributed open source database based on the row primary key and the key value to determine whether the business data is broken link data includes:

[0072] Step S402: if the business data exists in the big data platform, based on the row primary key and the key value, the business data is compared with the stored data to determine whether the stored data contains the business data;

[0073] Step S404: If the above-mentioned business data is included in the above-mentioned stored data, a field analysis is performed on the above-mentioned business data. If there is a difference between the field of the above-mentioned business data and the field of the existing business data, a closed-chain operation is performed on the above-mentioned big data platform, and a reopened-chain operation is performed on the above-mentioned big data platform to add the above-mentioned business data, and the latest valid status of the above-mentioned business data is recorded.

[0074] In an embodiment of the present application, if the business data exists in the above-mentioned source system and the data also exists in the big data platform, a field comparison needs to be performed for such data. If there are differences in the fields, it means that the source system has updated the data, and the big data platform needs to perform a closed-chain operation to end the previous data status and perform an open-chain operation at the same time, adding a new piece of data to record the latest valid status of the data; if there are no differences in the fields, it means that the source system data has not changed, and the big data platform does not perform any operation.

[0075] In an optional embodiment, the method further includes: if the business data exists in the big data platform and does not exist in the business source system, a closed-chain operation is performed on the big data platform and the business data is marked as invalid.

[0076] In an embodiment of the present application, if the business data does not exist in the above-mentioned source system, but exists in the big data platform, it indicates that the business data is deleted by the source system, and the big data platform directly performs closed-link processing; at the same time, the primary key is used as the rowkey, and the date of the day is stored as the value in Hbase, indicating that the data has become invalid data.

[0077] In an optional embodiment, the above method further includes:

[0078] Step S502, using a data warehouse tool to write a query statement;

[0079] Step S504, grouping the multiple data linked lists by the table primary key based on the query statement, and sorting the multiple data linked lists according to the opening date of the data linked lists to obtain a grouping and sorting result;

[0080] Step S506, storing the above grouping sorting results in a temporary storage area.

[0081] In the application embodiment, it is also possible but not limited to use a data warehouse tool to write a query statement; based on the above query statement, multiple data linked lists are grouped by the above table primary key, and the multiple data linked lists are sorted according to the opening date of the above data linked list to obtain the grouping and sorting results; the above grouping and sorting results are stored in a temporary storage area.

[0082] In an optional embodiment, after storing the group sorting result in a temporary storage area, the method further includes:

[0083] Step S602, determining whether there is a target data linked list in the temporary storage area, wherein the target data linked list contains two adjacent data with the same table primary key and different closing dates;

[0084] Step S604, query whether there is broken link data in the above target data linked list.

[0085] In the above optional embodiment, after storing the above group sorting results in the temporary storage area, it is also possible to determine whether there is a target data linked list in the above temporary storage area, and query whether there is broken link data in the above target data linked list.

[0086] As an optional embodiment, the method provided in the embodiment of the present application is illustrated by the following specific process steps:

[0087] First, initialize Hbase data, find invalid data in the table, group them by the primary key in the table, and there is no open chain data in the data linked list, that is, data with a closed chain date of '21001231'. Use the primary key as the rowkey, and store the last closed chain date of the primary key as the value in Hbase.

[0088] Secondly, the business source system sends the business data to the big data platform. After the big data platform receives the business data, it parses the business data to obtain the parsing result, and verifies whether the business data is completely transmitted based on the parsing result. The business data is compared with the storage data in the distributed open source database based on the row primary key and the key value to determine whether the business data is broken link data. For example, the data of the business source system and the valid data of the big data platform are fully connected according to the primary key, and the comparison results obtained by data comparison can include but are not limited to the following three situations:

[0089] Case 1: Data exists in the source system but not in the big data platform. First, determine whether the data is in Hbase and query using the primary key as the rowkey. If no data is found, it means that the data is newly added to the source system. The big data platform performs an open link operation, adds a new data, and records the latest valid status of the data. If the data can be found, it means that the primary key data has become invalid data. If the data is entered again on the big data platform, broken link data will be generated.

[0090] The second situation: There is data in the source system and in the big data platform. For this type of data, field comparison is required. If there are differences in the fields, it means that the source system has updated the data. The big data platform needs to perform a closed-chain operation to end the previous data status and open the chain at the same time to add a new piece of data to record the latest valid status of the data. If there are no differences in the fields, it means that the source system data has not changed and the big data platform does not perform any operation.

[0091] Case 3: The data does not exist in the source system but exists on the big data platform. The data is deleted by the source system and the big data platform performs closed-loop processing. At the same time, the primary key is used as the rowkey and the date of the day is used as the value and stored in Hbase, indicating that the data has become invalid.

[0092] In the embodiment of the present application, a processing method combining big data distributed high-speed cache technology and zipper table is used to realize the query of broken link data in the zipper table quickly. Through the embodiment of the present application, the broken link data in the zipper table can be judged, which saves computer memory resources and improves the query efficiency, and the broken link data can be quickly located.

[0093] Example 2

[0094] According to an embodiment of the present invention, a device embodiment for implementing the above method for determining broken link data is also provided. Figure 3 is a schematic diagram of a structure of a device for determining broken link data according to an embodiment of the present invention. Figure 3 As shown, the above-mentioned device for determining broken link data includes: an acquisition module 300, a processing module 302 and a determination module 304, wherein:

[0095] The acquisition module 300 is used to obtain the data linked list in the big data platform, and the above data linked list includes: a table primary key and a closed link date; the processing module 302 is used to use the above table primary key and the above closed link date as the row primary key and key value of the distributed open source database respectively; the determination module 304 is used to compare the above business data with the stored data in the above distributed open source database based on the above row primary key and the above key value when detecting that the above big data platform has received business data, so as to determine whether the above business data is broken link data.

[0096] It should be noted that the above modules can be implemented by software or hardware. For example, for the latter, it can be implemented in the following ways: the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0097] It should be noted that the acquisition module 300, the processing module 302 and the determination module 304 correspond to steps S102 to S106 in Example 1, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the modules as part of the device can be run in a computer terminal.

[0098] It should be noted that the optional or preferred implementation of this embodiment can refer to the relevant description in Example 1, which will not be repeated here.

[0099] The above-mentioned device for determining broken link data may also include a processor and a memory. The above-mentioned acquisition module 300, processing module 302 and determination module 304 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.

[0100] The processor includes a kernel, which retrieves the corresponding program unit from the memory. The kernel may be one or more. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory includes at least one memory chip.

[0101] According to an embodiment of the present application, an embodiment of a non-volatile storage medium is also provided. Optionally, in this embodiment, the non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute any of the methods for determining broken link data.

[0102] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group, and the non-volatile storage medium includes a stored program.

[0103] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: obtain a data linked list in the big data platform, the data linked list including: a table primary key and a closed link date; use the table primary key and the closed link date as the row primary key and key value of the distributed open source database respectively; when it is detected that the big data platform has received business data, compare the business data with the stored data in the distributed open source database based on the row primary key and the key value to determine whether the business data is broken link data.

[0104] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: all business data generated in the daily business process is obtained through the business source system, and the above business data is sent to the above big data platform through the service bus.

[0105] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: after the above-mentioned big data platform receives the above-mentioned business data, the above-mentioned business data is parsed to obtain a parsing result, and based on the above-mentioned parsing result, it is verified whether the above-mentioned business data is completely transmitted, wherein at least the field name, number of fields, and field type of the above-mentioned business data are verified.

[0106] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: if the business data does not exist in the big data platform, then based on the row primary key and the key value, the business data is compared with the storage data to determine whether the storage data contains the business data; if the storage data does not contain the business data, an open link operation is performed on the big data platform to add the business data, and the latest valid status of the business data is recorded; if the storage data contains the business data, the business data is determined to be the broken link data.

[0107] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: if the above-mentioned business data exists in the above-mentioned big data platform, then based on the above-mentioned row primary key and the above-mentioned key value, the above-mentioned business data is compared with the above-mentioned storage data to determine whether the above-mentioned storage data contains the above-mentioned business data; if the above-mentioned storage data contains the above-mentioned business data, the above-mentioned business data is subjected to field analysis, and if there is a difference between the field of the above-mentioned business data and the field of the existing business data, a closed-chain operation is performed on the above-mentioned big data platform, and a reopened-chain operation is performed on the above-mentioned big data platform to add the above-mentioned business data, and the latest valid status of the above-mentioned business data is recorded.

[0108] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: if the above-mentioned business data exists in the above-mentioned big data platform and the above-mentioned business data does not exist in the business source system, a closed-chain operation is performed on the above-mentioned big data platform, and the above-mentioned business data is marked as invalid.

[0109] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: use a data warehouse tool to write a query statement; based on the above query statement, multiple data linked lists are grouped by the above table primary key, and the multiple data linked lists are sorted according to the opening date of the above data linked list to obtain the grouping and sorting results; the above grouping and sorting results are stored in a temporary storage area.

[0110] Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following functions: determine whether there is a target data linked list in the above-mentioned temporary storage area, wherein the above-mentioned target data linked list contains two adjacent data with the same table primary key and different closing dates; query whether there is broken link data in the above-mentioned target data linked list.

[0111] According to an embodiment of the present application, an embodiment of a processor is also provided. Optionally, in this embodiment, the processor is used to run a program, wherein when the program is run, any one of the methods for determining broken link data is executed.

[0112] According to an embodiment of the present application, an embodiment of an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above methods for determining broken link data.

[0113] According to an embodiment of the present application, an embodiment of a computer program product is also provided. When executed on a data processing device, it is suitable for executing a program initialized with any of the above-mentioned method steps for determining broken link data.

[0114] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0115] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0116] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0117] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

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

[0119] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a non-volatile storage medium, including a number of instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned non-volatile storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0120] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for determining broken link data, characterized in that: include: Obtaining a data linked list in a big data platform, wherein the data linked list includes: a table primary key and a closed link date; Using the table primary key and the closed link date as the row primary key and key value of the distributed open source database respectively; When it is detected that the big data platform receives business data, the business data and the stored data in the distributed open source database are compared based on the row primary key and the key value to determine whether the business data is broken link data; the business data and the stored data in the distributed open source database are compared based on the row primary key and the key value to determine whether the business data is broken link data, including: if the business data does not exist in the big data platform, based on the row primary key and the key value, the business data is compared with the stored data to determine whether the stored data contains the business data; if the stored data does not contain the business data, an open chain operation is performed on the big data platform to add the business data, and the latest valid status of the business data is recorded; if the stored data If the business data is included, it is determined that the business data is the broken link data; based on the row primary key and the key value, the business data is compared with the storage data in the distributed open source database to determine whether the business data is broken link data, including: if the business data exists in the big data platform, based on the row primary key and the key value, the business data is compared with the storage data to determine whether the storage data contains the business data; if the storage data contains the business data, a field analysis is performed on the business data, and if there is a difference between the field of the business data and the field of the existing business data, a closed chain operation is performed on the big data platform, and a reopened chain operation is performed on the big data platform to add the business data, and the latest valid status of the business data is recorded.

2. The method according to claim 1, characterized in that: The business data is sent to the big data platform at least in the following manner: all business data generated in the daily business process is acquired through a business source system, and the business data is sent to the big data platform through a service bus.

3. The method according to claim 1, characterized in that The method further comprises: After the big data platform receives the business data, the business data is parsed to obtain a parsing result, and based on the parsing result, it is verified whether the business data is completely transmitted, wherein at least the field name, number of fields, and field type of the business data are verified; If the business data exists in the big data platform, based on the row primary key and the key value, the business data is compared with the stored data to determine whether the stored data contains the business data; If the business data is included in the stored data, a field analysis is performed on the business data. If the field of the business data is different from the field of the existing business data, a closed-chain operation is performed on the big data platform, and a reopened-chain operation is performed on the big data platform to add the business data, and the latest valid status of the business data is recorded.

4. The method according to claim 1, characterized in that The method further comprises: If the business data exists in the big data platform and does not exist in the business source system, a closed-chain operation is performed on the big data platform and the business data is marked as invalid.

5. A device for determining broken link data, characterized in that: include: An acquisition module is used to acquire a data link table in a big data platform, wherein the data link table includes: a table primary key and a closed link date; A processing module, used to use the table primary key and the closed link date as a row primary key and a key value of a distributed open source database respectively; A determination module is used to compare the business data with the stored data in the distributed open source database based on the row primary key and the key value when detecting that the big data platform has received the business data, so as to determine whether the business data is broken link data; the determination module is also used to compare the business data with the stored data based on the row primary key and the key value if the business data does not exist in the big data platform, so as to determine whether the stored data contains the business data; if the stored data does not contain the business data, perform an open link operation on the big data platform to add the business data, and record the latest valid status of .... If the business data is included in the stored data, it is determined that the business data is the broken link data; the determination module is also used to compare the business data with the stored data based on the row primary key and the key value if the business data exists in the big data platform, to determine whether the stored data contains the business data; if the stored data contains the business data, perform field analysis on the business data, and if there is a difference between the field of the business data and the field of the existing business data, perform a closed chain operation on the big data platform, and perform a reopen chain operation on the big data platform to add the business data, and record the latest valid status of the business data.

6. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method for determining broken link data as described in any one of claims 1 to 4.

7. A processor, characterized in that: The processor is used to run a program, wherein the program is configured to execute the method for determining broken link data according to any one of claims 1 to 4 when running.

8. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the method for determining broken link data according to any one of claims 1 to 4.