-
公开(公告)号:US20230083420A1
公开(公告)日:2023-03-16
申请号:US18050913
申请日:2022-10-28
Applicant: Huawei Technologies Co., Ltd.
Inventor: Yang Sun , Sofoklis Floratos , Ahmad Ghazal , Jianjun CHEN , Xiaodong Zhang
IPC: G06F16/242 , G06F16/2453 , G06F16/22 , G06F11/34
Abstract: A method for functionally rewriting iterative queries for a relational database management system (RDBMS) is provided. The method comprises receiving a first iterative query, the first iterative query having a first non-iterative part that defines a first main table and a first iterative part that generates values in rows of a first working table based on values in rows of the first main table, determining that the first iterative part modifies all of the rows of the first working table, and rewriting the first iterative part, including: adding a renaming operation to rename the first working table to a new first main table and to rename the first main table to a new first working table, adding a first Delete operation to delete each row of the new first working table, and adding a first loop operation to repeat the first iterative part until a first termination condition is met.
-
公开(公告)号:US11960479B2
公开(公告)日:2024-04-16
申请号:US18050913
申请日:2022-10-28
Applicant: Huawei Technologies Co., Ltd.
Inventor: Yang Sun , Sofoklis Floratos , Ahmad Ghazal , Jianjun Chen , Xiaodong Zhang
IPC: G06F16/242 , G06F11/34 , G06F16/22 , G06F16/2453
CPC classification number: G06F16/2425 , G06F11/3409 , G06F16/2282 , G06F16/24544
Abstract: A method for functionally rewriting iterative queries for a relational database management system (RDBMS) is provided. The method comprises receiving a first iterative query, the first iterative query having a first non-iterative part that defines a first main table and a first iterative part that generates values in rows of a first working table based on values in rows of the first main table, determining that the first iterative part modifies all of the rows of the first working table, and rewriting the first iterative part, including: adding a renaming operation to rename the first working table to a new first main table and to rename the first main table to a new first working table, adding a first Delete operation to delete each row of the new first working table, and adding a first loop operation to repeat the first iterative part until a first termination condition is met.
-