Hash multi-table join implementation method based on grouping vector

    公开(公告)号:US11797509B2

    公开(公告)日:2023-10-24

    申请号:US17266080

    申请日:2020-01-14

    Abstract: The disclosure includes aspects of a system and/or method including a hash multi-table joining implementation method based on a grouping vector, which includes the following steps: 1) rewriting an SQL query command, and dividing a complete OLAP query command into a subtask of selecting-projecting-grouping-joining operation and an subtask of aggregating operation; 2) creating and generating grouping vector metadata corresponding to a GROUP-BY statement in an SQL command through the subtask of selecting-projecting-grouping-joining operation, and creating a vector index as an output result of the subtask of selecting-projecting-grouping-joining operation; 3) executing aggregation computation based on the vector index through the subtask of aggregating operation, and storing an aggregation computation result in a corresponding unit of a grouping vector aggregator with the same length as the grouping vector; and 4) merging the aggregation computation result in the grouping vector aggregator with the grouping vector metadata created in the joining operation subtask, and outputting the merged data as a result set of the SQL query command. The disclosure can be widely applied to the field of OLAP data query.

    HASH MULTI-TABLE JOIN IMPLEMENTATION METHOD BASED ON GROUPING VECTOR

    公开(公告)号:US20210256006A1

    公开(公告)日:2021-08-19

    申请号:US17266080

    申请日:2020-01-14

    Abstract: The disclosure includes aspects of a system and/or method including a hash multi-table joining implementation method based on a grouping vector, which includes the following steps: 1) rewriting an SQL query command, and dividing a complete OLAP query command into a subtask of selecting-projecting-grouping-joining operation and an subtask of aggregating operation; 2) creating and generating grouping vector metadata corresponding to a GROUP-BY statement in an SQL command through the subtask of selecting-projecting-grouping-joining operation, and creating a vector index as an output result of the subtask of selecting-projecting-grouping-joining operation; 3) executing aggregation computation based on the vector index through the subtask of aggregating operation, and storing an aggregation computation result in a corresponding unit of a grouping vector aggregator with the same length as the grouping vector; and 4) merging the aggregation computation result in the grouping vector aggregator with the grouping vector metadata created in the joining operation subtask, and outputting the merged data as a result set of the SQL query command. The disclosure can be widely applied to the field of OLAP data query.

Patent Agency Ranking