A method and system for generating data lineage based on digitization

By collecting and warehousing the basic characteristics of data source files, the kinship relationship is established, which solves the problem of low efficiency of data kinship generation in the existing technology, achieves rapid acquisition of data upstream and downstream relationships, and reduces development error rates and time costs.

CN117931809BActive Publication Date: 2024-09-13QUANT360
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410222131.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2024-09-13
Estimated Expiration
2044-02-28

AI Technical Summary

Technical Problem

The application of existing data lineage technology is limited, the test process takes a long time to run, the operation is cumbersome, and the efficiency is low.

Method used

Record the basic characteristics of the data source file through the platform collection information table, fill in the configuration information to store and access the data source, establish the ods layer table and store the data, associate it into the dw layer table, establish blood relationships, and use third-party APIs or platforms to obtain Data source files, delete or add blood relationships in a timely manner.

Benefits of technology

Quickly obtain the upstream and downstream relationships of data, reduce development error rates, save time and costs, and improve the efficiency of data lineage generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117931809B
    Figure CN117931809B
Patent Text Reader

Abstract

The present invention provides a data lineage generation method and system based on digitization, the method includes: recording the basic characteristics of the data source file through the platform collection information table; by filling in the first configuration information, the platform file storage information table records the storage information of the data source file; by filling in the second configuration information, the platform database access information table links to the upstream source database, and obtains the data in the upstream source database; by filling in the third configuration information, the platform API call information table accesses and calls the specified API interface, obtains the data in the API interface and stores it in a specified table of the specified database; establishes an ods layer table according to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary; and associates multiple ods layer tables into a dw layer table. The data lineage generation method and system based on digitization provided by the present invention can quickly obtain the relationship between the upstream and downstream of the data, greatly reduce the development error rate, and save time costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of database management, and in particular to a method and system for generating data lineage based on digitization. Background Art

[0002] In the current market, data lineage technology usually uses database query SQL (Structured Query Language) field lineage. The invention patent with application number CN202210878726.X and name "A method for generating SQL field lineage in database query" discloses a method for generating SQL field lineage in database query. First, a SQL lineage parser is constructed, relevant SQL statements are input, and the SQL statements are parsed to obtain the field expression set and query expression set of the result, and the field expression is processed to check whether there is a connection between the field expressions, and the expressions of all table connections are traversed to obtain the mapping relationship to obtain the data lineage result.

[0003] However, the application of the above-mentioned data lineage technology has strong limitations, the batch testing process takes a long time to execute, the operation is cumbersome, and the efficiency is relatively low.

[0004] Therefore, it is necessary to provide a digital-based data lineage generation method and device that can solve the above problems. Summary of the invention

[0005] In view of the problems and shortcomings of the prior art, the present invention provides a method and system for generating data lineage based on digitization.

[0006] The present invention solves the above technical problems through the following technical solutions:

[0007] The present invention provides a method for generating data lineage based on digitization, the method comprising:

[0008] The basic characteristics of the data source file are recorded through the platform collection information table, wherein the information fields in the platform collection information table at least include a collection ID, a collection name, and a file storage path, and the data source file includes a table or a view, and the collection task scheduling program is associated with the collection ID;

[0009] By filling in the first configuration information, the platform file storage information table records the storage information of the data source file, and the information fields in the platform file storage information table at least include the first configuration ID, file ID, server file path, storage database name and storage table name. The platform file storage information table and the platform collection information table are associated and establish a blood relationship through the file storage path and the storage table name. The platform file storage information table is associated with the file storage scheduler through the first configuration ID;

[0010] By filling in the second configuration information, the platform database access information table is linked to the upstream source database, the data in the upstream source database is obtained and stored in a specified table of the specified database, the second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID;

[0011] By filling in the third configuration information, the platform API call information table accesses and calls the specified API interface, obtains the data in the API interface and stores it in a specified table of the specified database, the third configuration information includes a third configuration ID, and the platform API call information table is associated with the API access scheduler through the third configuration ID;

[0012] According to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, an ods layer table is established and the data of the upstream source is stored in the database. The ods layer table and the platform file storage information table are associated through the storage database name and the storage table name to establish a blood relationship;

[0013] The plurality of ods layer tables are associated with each other as a dw layer table, and the association relationship between the dw layer table and the plurality of ods layer tables is stored in a proceed function.

[0014] Preferably, the data source file is obtained through a third-party API interface or through a third-party platform.

[0015] Preferably, the data source file is obtained through a database account provided by a third party, and the third party's database is extracted into the local database.

[0016] Preferably, the view name and creation statement are obtained from the data source file, the characters in the creation statement are segmented to obtain a first keyword and a second keyword, the name following the first keyword is recorded as an upstream table of the data source file, and the name following the second keyword is recorded as a downstream table of the data source file; the blood relationship is compared with the upstream table and the downstream table, and if the data source file does not have the upstream table, it is determined to be a first type table, and if the data source file has the upstream table, it is determined to be a second type table.

[0017] Preferably, if the first category table exists but the data source file does not, it means that the blood relationship no longer exists, and the first category table is deleted;

[0018] If the first category table and the second category table are repeated, it means that the blood relationship has changed, and the first category table or the second category table is deleted;

[0019] If it exists in the data source file but not in the first type table or the second type table, it is indicated as a newly added table and the table is added.

[0020] The present invention also provides a digital data lineage generation system, the system comprising:

[0021] A basic feature acquisition module, which is used to record the basic features of the data source file through the platform collection information table, wherein the information fields in the platform collection information table at least include a collection ID, a collection name, and a file storage path, and the data source file includes a table or a view, and the collection task scheduler is associated with the collection ID;

[0022] A first configuration module, which is used to fill in the first configuration information, and the platform file storage information table records the storage information of the data source file. The information fields in the platform file storage information table at least include the first configuration ID, file ID, server file path, storage database name and storage table name. The platform file storage information table and the platform collection information table are associated and establish a blood relationship through the file storage path and the storage table name. The platform file storage information table is associated with the file storage scheduling program through the first configuration ID;

[0023] A second configuration module, which is used to fill in second configuration information, link the platform database access information table to the upstream source database, obtain the data in the upstream source database and store it in a specified table of the specified database, wherein the second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID;

[0024] A third configuration module, which is used to fill in third configuration information, access and call the specified API interface through the platform API call information table, obtain the data in the API interface and store it in a specified table of the specified database, the third configuration information includes a third configuration ID, and the platform API call information table is associated with the API access scheduler through the third configuration ID;

[0025] The ods layer table construction module is used to establish the ods layer table according to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, and store the data of the upstream source in the database. The ods layer table and the platform file storage information table are associated and establish a blood relationship through the storage database name and the storage table name;

[0026] The dw layer table construction module is used to associate multiple ods layer tables into a dw layer table, and the association relationship between the dw layer table and the multiple ods layer tables is stored in the proce function.

[0027] Preferably, the data source file is obtained through a third-party API interface or through a third-party platform.

[0028] Preferably, the data source file is obtained through a database account provided by a third party, and the third party's database is extracted into the local database.

[0029] Preferably, the view name and creation statement are obtained from the data source file, the characters in the creation statement are segmented to obtain a first keyword and a second keyword, the name following the first keyword is recorded as an upstream table of the data source file, and the name following the second keyword is recorded as a downstream table of the data source file; the blood relationship is compared with the upstream table and the downstream table, and if the data source file does not have the upstream table, it is determined to be a first type table, and if the data source file has the upstream table, it is determined to be a second type table.

[0030] Preferably, if the first category table exists but the data source file does not, it means that the blood relationship no longer exists, and the first category table is deleted;

[0031] If the first category table and the second category table are repeated, it means that the blood relationship has changed, and the first category table or the second category table is deleted;

[0032] If it exists in the data source file but not in the first type table or the second type table, it is indicated as a newly added table and the table is added.

[0033] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:

[0034] The data lineage generation method and system based on digitization provided by the embodiment of the present invention record the basic characteristics of the data source file through the platform collection information table, the information fields in the platform collection information table at least include the collection ID, the collection name and the file storage path, the data source file includes a table or a view, and the collection task scheduling program is associated with the collection ID; by filling in the first configuration information, the platform file storage information table records the storage information of the data source file, the information fields in the platform file storage information table at least include the first configuration ID, the file ID, the server file path, the storage database name and the storage table name, the platform file storage information table and the platform collection information table are associated and establish a lineage relationship through the file storage path and the storage table name, and the platform file storage information table is associated with the file storage scheduling program through the first configuration ID; by filling in the second configuration information, the platform database access information table links to the upstream source database, obtains the data in the upstream source database and stores it in a specified table of the specified database, The second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID; by filling in the third configuration information, the platform API call information table accesses and calls the specified API interface, obtains the data in the API interface and stores it in a specified table of the specified database, and the third configuration information includes a third configuration ID, and the platform API call information table is associated with the API access scheduler through the third configuration ID; an ods layer table is established according to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, and the data of the upstream source is stored in the database, and the ods layer table and the platform file storage information table are associated through the storage database name and the storage table name and establish a blood relationship; multiple ods layer tables are associated as dw layer tables, and the association relationship between the dw layer table and multiple ods layer tables is stored in the proce function, so as to quickly obtain the relationship between the upstream and downstream of the data, greatly reduce the development error rate, and save time cost;

[0035] Furthermore, the data source file is obtained through a third-party API interface or through a third-party platform, or through a database account provided by a third party, and the third-party database is extracted into a local database, so that the data source file can be obtained comprehensively and quickly;

[0036] Furthermore, the view name and creation statement are obtained from the data source file, the characters in the creation statement are segmented to obtain the first keyword and the second keyword, the name after the first keyword is recorded as the upstream table of the data source file, and the name after the second keyword is recorded as the downstream table of the data source file; the blood relationship is compared with the upstream table and the downstream table, if the data source file does not have the upstream table, it is determined to be a first type of table, if the data source file has the upstream table, it is determined to be a second type of table, if the first type of table exists but not in the data source file, it indicates that the blood relationship no longer exists, and the first type of table is deleted; if the first type of table and the second type of table are repeated, it indicates that the blood relationship has changed, and the first type of table or the second type of table is deleted; if the data source file exists but not in the first type of table or the second type of table, it indicates that the blood relationship has changed, and the first type of table or the second type of table is deleted; if the data source file exists but not in the first type of table or the second type of table, it indicates that a new table is added, and the table is added, so as to timely delete the blood relationship of the table that no longer exists, and timely delete the first type of table when the blood relationship changes. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of a flow chart of a method for generating data lineage based on digitization provided by an embodiment of the present invention;

[0038] Figure 2 A schematic diagram of the structure of a digital-based data lineage generation system provided for one embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 making creative work are within the scope of protection of the present invention.

[0040] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0041] Based on the problems existing in the existing technology, such as Figure 1 As shown, the present invention provides a method for generating data lineage based on digitization, the method comprising:

[0042] Step S101: recording basic features of a data source file through a platform collection information table, wherein the information fields in the platform collection information table at least include a collection ID, a collection name, and a file storage path, and the data source file includes a table or a view, and the collection task scheduling program is associated with the collection ID;

[0043] Step S102: by filling in the first configuration information, the platform file storage information table records the storage information of the data source file, the information fields in the platform file storage information table at least include the first configuration ID, file ID, server file path, storage database name and storage table name, the platform file storage information table and the platform collection information table are associated and establish a blood relationship through the file storage path and the storage table name, and the platform file storage information table is associated with the file storage scheduling program through the first configuration ID;

[0044] Step S103: by filling in the second configuration information, the platform database access information table is linked to the upstream source database, the data in the upstream source database is obtained and stored in a specified table of the specified database, the second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID;

[0045] Step S104: by filling in the third configuration information, the platform API (Application Programming Interface) call information table accesses and calls the specified API interface, obtains the data in the API interface and stores it in a specified table of the specified database, the third configuration information includes a third configuration ID, and the platform API call information table associates the API access scheduler through the third configuration ID;

[0046] Step S105: an ods (Operational Data Store) layer table is established according to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, and the data of the upstream source is stored in the database. The ods layer table and the platform file storage information table are associated through the storage database name and the storage table name to establish a blood relationship;

[0047] Step S106: associating the plurality of ods-layer tables into a dw (Data Warehouse)-layer table, and storing the association relationship between the dw-layer table and the plurality of ods-layer tables in a proce function.

[0048] Specifically, in step S101, the information fields of the platform collection information table also include: ID, whether to loop, loop frequency, URL, decryption, identification keyword, name keyword, whether the URL contains date, call type, basic information parameters, information header information, keywords, file naming specifications, file storage type, collection URL, collection photos, announcement release time, action chain, notes, release time, update time, and update ID.

[0049] In step S102, the information fields in the platform file storage information table also include: ID, file name, file type, database ID, separator, field name row, first data row, last data row, full table limit, release time, update time, and update ID.

[0050] In step S103, the information fields of the platform database access information table also include: data flag, release time, update time, update ID, valid flag, and deletion time. Among them, the upstream source database is selected when building a table, and a form is established in the database.

[0051] In step S104, the information fields in the platform API call information table also include: ID, configuration ID, table ID, URL, API interface code, call parameter information, data source code, data flag, release time, update time, update ID, valid flag, and deletion time. Among them, the specified table of the specified database specifically includes the configuration table of file entry, which is associated with this table according to the table name into_tab_eng_fn using the dictionary table, and can be associated with the downstream. In the configuration table, which table will be stored in the library, which table is the downstream, and the upstream is the configuration ID of the associated table.

[0052] In a specific implementation, the data source file is obtained through a third-party API interface or through a third-party platform.

[0053] In a specific implementation, the data source file is obtained through a database account provided by a third party, and the third party's database is extracted into a local database.

[0054] In a specific implementation, the view name and creation statement are obtained from the data source file, the characters in the creation statement are segmented to obtain a first keyword and a second keyword, the name following the first keyword is recorded as an upstream table of the data source file, and the name following the second keyword is recorded as a downstream table of the data source file; the blood relationship is compared with the upstream table and the downstream table, and if the data source file does not have the upstream table, it is determined to be a first type table, and if the data source file has the upstream table, it is determined to be a second type table.

[0055] In a specific implementation, if the first category table exists but the data source file does not, it means that the blood relationship no longer exists, and the first category table is deleted;

[0056] If the first category table and the second category table are repeated, it means that the blood relationship has changed, and the first category table or the second category table is deleted;

[0057] If it exists in the data source file but not in the first type table or the second type table, it is indicated as a newly added table and the table is added.

[0058] The present invention also provides a digital data lineage generation system, the system comprising:

[0059] A basic feature acquisition module 21 is used to record basic features of a data source file through a platform collection information table, wherein the information fields in the platform collection information table at least include a collection ID, a collection name, and a file storage path, wherein the data source file includes a table or a view, and the collection task scheduler is associated with the collection ID;

[0060] The first configuration module 22 is used to fill in the first configuration information, and the platform file storage information table records the storage information of the data source file. The information fields in the platform file storage information table at least include the first configuration ID, file ID, server file path, storage database name and storage table name. The platform file storage information table and the platform collection information table are associated and establish a blood relationship through the file storage path and the storage table name. The platform file storage information table is associated with the file storage scheduling program through the first configuration ID;

[0061] A second configuration module 23, which is used to fill in second configuration information, link the platform database access information table to the upstream source database, obtain the data in the upstream source database and store it in a specified table of the specified database, wherein the second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID;

[0062] A third configuration module 24, which is used to fill in third configuration information, access and call the specified API interface through the platform API call information table, obtain the data in the API interface and store it in a specified table of the specified database, the third configuration information includes a third configuration ID, and the platform API call information table is associated with the API access scheduler through the third configuration ID;

[0063] The ods layer table construction module 25 is used to establish the ods layer table according to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, and store the data of the upstream source in the database. The ods layer table and the platform file storage information table are associated and establish a blood relationship through the storage database name and the storage table name;

[0064] The dw layer table construction module 26 is used to associate the multiple ods layer tables into a dw layer table, and the association relationship between the dw layer table and the multiple ods layer tables is stored in the proceed function.

[0065] In a specific implementation, the data source file is obtained through a third-party API interface or through a third-party platform.

[0066] In a specific implementation, the data source file is obtained through a database account provided by a third party, and the third party's database is extracted into a local database.

[0067] In a specific implementation, the view name and creation statement are obtained from the data source file, the characters in the creation statement are segmented to obtain a first keyword and a second keyword, the name following the first keyword is recorded as an upstream table of the data source file, and the name following the second keyword is recorded as a downstream table of the data source file; the blood relationship is compared with the upstream table and the downstream table, and if the data source file does not have the upstream table, it is determined to be a first type table, and if the data source file has the upstream table, it is determined to be a second type table.

[0068] In a specific implementation, if the first category table exists but the data source file does not, it means that the blood relationship no longer exists, and the first category table is deleted;

[0069] If the first category table and the second category table are repeated, it means that the blood relationship has changed, and the first category table or the second category table is deleted;

[0070] If it exists in the data source file but not in the first type table or the second type table, it is indicated as a newly added table and the table is added.

[0071] The above scheme will be further described below using the Shenzhen Stock Exchange's convertible bond over-the-counter transaction information as an example.

[0072] First, fill in the basic information of the Shenzhen Stock Exchange convertible bond over-the-counter transaction information table in the information field of the platform collection information table, including: collection ID (240101), collection name (Shenzhen Stock Exchange ordinary bond over-the-counter transaction), and file storage path ( / home / data / mydata / SZ / SZFI / SZFI_OTC_tick).

[0073] Then fill in the basic information of the Shenzhen Stock Exchange Convertible Bond OTC Transaction Information Table in the information field of the platform file storage information table, including: file ID (24010002), file storage path ( / home / data / mydata / SZ / SZFI / SZFI_OTC_tick / {YYYYMMDD}_SZFI_OTC_tick_kzz_new.xlsx), storage database (mysql / odssse), storage table English name (Tick_SZFI_OTC). Establish operable data storage through custom table structure: The information fields in the custom table structure include: form code (odssse22), table Chinese name (Shenzhen Fixed Income OTC Transaction Quotes), database (mysql / odssse), table English name (Tick_SZFI_OTC).

[0074] The information fields in the API call information table include: form code (dwkr15), table Chinese name (bond over-the-counter transaction), database (mysql / dwkr), and table English name (bood_otr_outr_quot).

[0075] The data source file may be obtained through a third-party API interface or a third-party platform, or through a database account provided by a third party, and the third-party database may be extracted into a local database.

[0076] In summary, the data lineage generation method and system based on digitization provided by the embodiment of the present invention records the basic characteristics of the data source file through the platform collection information table. The information fields in the platform collection information table include at least the collection ID, the collection name and the file storage path. The data source file includes a table or a view, and the collection task scheduling program is associated with the collection ID; by filling in the first configuration information, the platform file entry information table records the entry information of the data source file. The information fields in the platform file entry information table include at least the first configuration ID, the file ID, the server file path, the entry database name and the entry table name. The platform file entry information table and the platform collection information table are associated and establish a lineage relationship through the file storage path and the entry table name. The platform file entry information table is associated with the file entry scheduling program through the first configuration ID; by filling in the second configuration information, the platform database access information table links to the upstream source database, obtains the data in the upstream source database and stores it in a specified table of the specified database. The second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID; by filling in the third configuration information, the platform API call information table accesses and calls the specified API interface, obtains the data in the API interface and stores it in a specified table of the specified database, and the third configuration information includes a third configuration ID, and the platform API call information table is associated with the API access scheduler through the third configuration ID; according to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, an ods layer table is established and the data of the upstream source is stored in the database, and the ods layer table and the platform file storage information table are associated through the storage database name and the storage table name and establish a blood relationship; multiple ods layer tables are associated as dw layer tables, and the association relationship between the dw layer table and multiple ods layer tables is stored in the proce function, so as to quickly obtain the relationship between the upstream and downstream of the data, greatly reduce the development error rate, and save time cost;

[0077] Furthermore, the data source file is obtained through a third-party API interface or through a third-party platform, or through a database account provided by a third party, and the third-party database is extracted into a local database, so that the data source file can be obtained comprehensively and quickly;

[0078] Furthermore, the view name and creation statement are obtained from the data source file, the characters in the creation statement are segmented to obtain the first keyword and the second keyword, the name after the first keyword is recorded as the upstream table of the data source file, and the name after the second keyword is recorded as the downstream table of the data source file; the blood relationship is compared with the upstream table and the downstream table, if the data source file does not have the upstream table, it is determined to be a first type of table, if the data source file has the upstream table, it is determined to be a second type of table, if the first type of table exists but not in the data source file, it indicates that the blood relationship no longer exists, and the first type of table is deleted; if the first type of table and the second type of table are repeated, it indicates that the blood relationship has changed, and the first type of table or the second type of table is deleted; if the data source file exists but not in the first type of table or the second type of table, it indicates that the blood relationship has changed, and the first type of table or the second type of table is deleted; if the data source file exists but not in the first type of table or the second type of table, it indicates that a new table is added, and the table is added, so as to timely delete the blood relationship of the table that no longer exists, and timely delete the first type of table when the blood relationship changes.

[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating data lineage based on digitization, characterized in that: The method comprises: The basic characteristics of the data source file are recorded through the platform collection information table, wherein the information fields in the platform collection information table at least include a collection ID, a collection name, and a file storage path, and the data source file includes a table or a view, and the collection task scheduling program is associated with the collection ID; By filling in the first configuration information, the platform file storage information table records the storage information of the data source file, and the information fields in the platform file storage information table at least include the first configuration ID, file ID, server file path, storage database name and storage table name. The platform file storage information table and the platform collection information table are associated and establish a blood relationship through the file storage path and the storage table name. The platform file storage information table is associated with the file storage scheduler through the first configuration ID; By filling in the second configuration information, the platform database access information table is linked to the upstream source database, the data in the upstream source database is obtained and stored in a specified table of the specified database, the second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID; By filling in the third configuration information, the platform API call information table accesses and calls the specified API interface, obtains the data in the API interface and stores it in a specified table of the specified database, the third configuration information includes a third configuration ID, and the platform API call information table is associated with the API access scheduler through the third configuration ID; According to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, an ods layer table is established and the data of the upstream source is stored in the database. The ods layer table and the platform file storage information table are associated through the storage database name and the storage table name to establish a blood relationship; The plurality of ods layer tables are associated with each other as a dw layer table, and the association relationship between the dw layer table and the plurality of ods layer tables is stored in a proceed function.

2. The method for generating data lineage based on digitization according to claim 1, characterized in that: The data source file is obtained through a third-party API interface or through a third-party platform.

3. The method for generating data lineage based on digitization according to claim 1, characterized in that: The data source file is obtained through a database account provided by a third party, and the third party's database is extracted to a local database.

4. The method for generating data lineage based on digitization according to claim 1, characterized in that: Obtain a view name and a creation statement from the data source file, split characters in the creation statement to obtain a first keyword and a second keyword, record the name following the first keyword as an upstream table of the data source file, and record the name following the second keyword as a downstream table of the data source file; The blood relationship is compared with the upstream table and the downstream table. If the data source file does not have the upstream table, it is determined to be a first-type table. If the data source file has the upstream table, it is determined to be a second-type table.

5. The method for generating data lineage based on digitization according to claim 4, characterized in that: If the first category table contains the data, but not the data source file, it means that the blood relationship no longer exists, and the first category table is deleted; If the first category table and the second category table are repeated, it means that the blood relationship has changed, and the first category table or the second category table is deleted; If it exists in the data source file but not in the first type table or the second type table, it is indicated as a newly added table and the table is added.

6. A digital data lineage generation system, characterized in that: The system comprises: A basic feature acquisition module, which is used to record the basic features of the data source file through the platform collection information table, wherein the information fields in the platform collection information table at least include a collection ID, a collection name, and a file storage path, and the data source file includes a table or a view, and the collection task scheduler is associated with the collection ID; A first configuration module, which is used to fill in the first configuration information, and the platform file storage information table records the storage information of the data source file. The information fields in the platform file storage information table at least include the first configuration ID, file ID, server file path, storage database name and storage table name. The platform file storage information table and the platform collection information table are associated and establish a blood relationship through the file storage path and the storage table name. The platform file storage information table is associated with the file storage scheduling program through the first configuration ID; A second configuration module, which is used to fill in second configuration information, link the platform database access information table to the upstream source database, obtain the data in the upstream source database and store it in a specified table of the specified database, wherein the second configuration information includes a second configuration ID, and the platform database access information table is associated with the database access scheduler through the second configuration ID; A third configuration module, which is used to fill in third configuration information, access and call the specified API interface through the platform API call information table, obtain the data in the API interface and store it in a specified table of the specified database, the third configuration information includes a third configuration ID, and the platform API call information table is associated with the API access scheduler through the third configuration ID; The ods layer table construction module is used to establish the ods layer table according to the file content of the platform file storage, the database access table dictionary, and the API access table dictionary, and store the data of the upstream source in the database. The ods layer table and the platform file storage information table are associated and establish a blood relationship through the storage database name and the storage table name; The dw layer table construction module is used to associate multiple ods layer tables into a dw layer table, and the association relationship between the dw layer table and the multiple ods layer tables is stored in the proce function.