# US 2025/0094438 A1 · Data flow optimization system and method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0094438 A1
- Document ID: US20250094438A1
- Status: Published application
- Kind: A1
- Application number: 18/545,398
- Filed: 2023-12-19
- Published: 2025-03-20
- Earliest claimed: 2023-09-14
- Assignees: Inventec (Pudong) Technology Corporation; Inventec Corporation
- Applicants: Inventec (Pudong) Technology Corporation; Inventec Corporation
- Inventors: Yu-Lun CHANG; Shu-Huei YANG; Wei-Chao CHEN
- Web page: https://patentgrep.com/patent/US20250094438A1

## CPC

- G06F 16/254: {Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An optimization method for data flow includes converting a plurality of extract-transform-load (ETL) scripts into a data flow diagram, wherein the data flow diagram includes a plurality of data lineages, with each data lineage including a plurality of data nodes; performing a first merging process, which repeatedly identifies at least two data lineages with the same nodes and merges them into a data family until any two of the data lineages do not have the same nodes; performing a second merging process, which calculates a column similarity of a pair of node, wherein the pair of nodes includes two adjacent data nodes within a data lineage; when the column similarity exceeds a threshold, merging the two data nodes; when the column similarity of the pair of nodes falls below the threshold, the data flow diagram is optimized, which is then converted into ETL scripts accordingly.

## Claims

### Claim 1

A data flow optimization method, performed by a processor, comprising:
converting a plurality of extract-transform-load scripts into a data flow diagram, wherein the data flow diagram includes a plurality of data lineages, and each of the plurality of data lineages includes a plurality of data nodes connected in a series;
performing a first merging process to generate a plurality of data families, wherein the first merging process comprises: repeatedly finding at least two data lineages from the plurality of data lineages that have an identical node; and merging the at least two data lineages into one of the plurality of data families until any two of the plurality of data lineages do not have the identical node;
after the first merging process is completed, performing a second merging process on each of the plurality of data lineages, wherein the second merging process comprises: calculating a column similarity of a node pair, wherein the node pair comprises two adjacent data nodes with the series; when the column similarity exceeds a first threshold, merging the two adjacent data nodes into one node; and
when the column similarity of the node pair does not exceed the first threshold, converting the data flow diagram back into an optimized script.

### Claim 2 (depends on 1)

The data flow optimization method for data flow performed of claim 1, further comprising:
after the second merging process is completed, performing a third merging process on a candidate data family, wherein the candidate data family is each of the plurality of data families, the candidate data family comprises a plurality of candidate nodes, each of the plurality of candidate nodes denotes a data table, the data table comprises a plurality of text columns and a plurality of numeric columns, and the third merging process comprises:
determining a plurality of dimensions corresponding to the plurality of text columns respectively;
calculating a missing rate of each of the plurality of dimensions, wherein the missing rate is a number of candidate nodes of one of the plurality of dimensions corresponding to one of the plurality of text columns divided by a total number of the plurality of candidate nodes;
recording a plurality of retained dimensions whose missing rate exceeds a second threshold, wherein the plurality of retained dimensions comprises at least two of the plurality of dimensions;
generating an integrated text column according to a plurality of common nodes in the plurality of retained dimensions and adding the integrated text column to an integrated node, wherein the plurality of common nodes comprises at least two of the plurality of candidate nodes;
calculating a pair-wise correlation of the plurality of common nodes, wherein the pair-wise correlation is a correlation between one of the plurality of numeric columns of one of the plurality of common nodes and one of the plurality of numeric columns of another one of the plurality of common nodes;
merging two of the plurality of numeric columns into an integrated numeric column and adding the integrated numeric column to the integrated node when the pair-wise correlation exceeds than a third threshold; and
adding two of the plurality of numeric columns to the integrated node when the pair-wise correlation does not exceed the third threshold.

### Claim 3 (depends on 1)

The data flow optimization method for data flow performed of claim 1, wherein calculating the column similarity of the node pair comprises:
obtaining an intersection between a plurality of first columns of a first data table and a plurality of second columns of a second data table, wherein the first data table and the second data table respectively correspond to the two adjacent data nodes of the plurality of data nodes in the series;
obtaining a union between the plurality of first columns and the plurality of second columns; and
dividing the intersection by the union to generate the column similarity.

### Claim 4 (depends on 1)

The data flow optimization method for data flow performed of claim 1, wherein the plurality of extract-transform-load scripts is structured query language script.

### Claim 5 (depends on 1)

The data flow optimization method for data flow performed of claim 1, wherein converting the plurality of extract-transform-load scripts into the data flow diagram is done using python SQLLineage.

### Claim 6

A data flow optimization system comprising:
a storage device configured to store a plurality of extract-transform-load scripts and a plurality of instructions; and
a computing device electrically connected to the storage device and configured to execute the plurality of instructions to perform a plurality of operations, wherein the plurality of instructions comprises:
converting a plurality of extract-transform-load scripts into a data flow diagram, wherein the data flow diagram includes a plurality of data lineages, each of the plurality of data lineages includes a plurality of data nodes connected in a series;
performing a first merging process to generate a plurality of data families, wherein the first merging process comprises: repeatedly finding at least two data lineages from the plurality of data lineages that have an identical node; and merging the at least two data lineages into one of the plurality of data families until any two of the plurality of data lineages do not have the identical node;
after the first merging process is completed, performing a second merging process on each of the plurality of data lineages, wherein the second merging process comprises: calculating a column similarity of a node pair, wherein the node pair comprises two adjacent data nodes with the series; when the column similarity exceeds a first threshold, merging the two adjacent data nodes into one node; and
when the column similarity of the node pair does not exceed the first threshold, converting the data flow diagram back into an optimized script.

### Claim 7 (depends on 6)

The data flow optimization system of claim 6, wherein the plurality of instructions further comprises:
after the second merging process is completed, performing a third merging process on a candidate data family, wherein the candidate data family is each of the plurality of data families, the candidate data family comprises a plurality of candidate nodes, each of the plurality of candidate nodes denotes a data table, the data table comprises a plurality of text columns and a plurality of numeric columns, and the third merging process comprises:
determining a plurality of dimensions corresponding to the plurality of text columns respectively;
calculating a missing rate of each of the plurality of dimensions, wherein the missing rate is a number of candidate nodes of one of the plurality of dimensions corresponding to one of the plurality of text columns divided by a total number of the plurality of candidate nodes;
recording a plurality of retained dimensions whose missing rate exceeds a second threshold, wherein the plurality of retained dimensions comprises at least two of the plurality of dimensions;
generating an integrated text column according to a plurality of common nodes in the plurality of retained dimensions and adding the integrated text column to an integrated node, wherein the plurality of common nodes comprises at least two of the plurality of candidate nodes;
calculating a pair-wise correlation of the plurality of common nodes, wherein the pair-wise correlation is a correlation between one of the plurality of numeric columns of one of the plurality of common nodes and one of the plurality of numeric columns of another one of the plurality of common nodes;
merging two of the plurality of numeric columns into an integrated numeric column and adding the integrated numeric column to the integrated node when the pair-wise correlation exceeds than a third threshold; and
adding two of the plurality of numeric columns to the integrated node when the pair-wise correlation does not exceed the third threshold.

### Claim 8 (depends on 6)

The data flow optimization system of claim 6, wherein calculating the column similarity of the node pair comprises:
obtaining an intersection between a plurality of first columns of a first data table and a plurality of second columns of a second data table, wherein the first data table and the second data table respectively correspond to the two adjacent data nodes of the plurality of data nodes in the series;
obtaining a union between the plurality of first columns and the plurality of second columns; and
dividing the intersection by the union to generate the column similarity.

### Claim 9 (depends on 6)

The data flow optimization system of claim 6, wherein the plurality of extract-transform-load scripts is structured query language script.

### Claim 10 (depends on 6)

The data flow optimization system of claim 6, wherein converting the plurality of extract-transform-load scripts into the data flow diagram is done using python SQLLineage.
