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

Claim 0:
1. A method, comprising:
obtaining identification information of a data source referenced by a structured query language (SQL) from a user;
reading, from an internal storage space of a query engine based on the identification information of the data source, data source feature information corresponding to the data source referenced by the SQL;
decomposing the SQL into logical plans based on the data source feature information to obtain a logical plan set, wherein the data source feature information is imported from an external storage space of the query engine and stored in the internal storage space of the query engine;
generating physical plans for the logical plan set based on the data source feature information to obtain a physical plan set;
determining query costs of the physical plan set based on the data source feature information to obtain a physical plan; and
executing the physical plan to obtain a query result of the SQL to return to the user.