Patent ID: 11907213
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. A non-transitory computer-readable storage medium storing one or more instructions that, when executed by a hardware processor, cause the hardware processor to:
store data source feature information imported from an external storage space of a query engine in an internal storage space of the query engine;
obtain identification information of a data source referenced by a structured query language (SQL) from a user;
read, from the internal storage space of the query engine based on the identification information of the data source, the data source feature information corresponding to the data source referenced by the SQL;
decompose the SQL, into logical plans based on the data source feature information, to obtain a logical plan set;
generate physical plans for the logical plan set based on the data source feature information, to obtain a physical plan set;
determine query costs of the physical plan set based on the data source feature information to obtain a physical plan; and
execute the physical plan to obtain a query result to return to the user.