Data query method and query engine
AssigneeAlipay (Hangzhou) Information Technology Co., Ltd.
InventorLitao LIN
Life of this patent
Estimating the term…
Abstract
A data query method is performed by a query engine, and includes: receiving a user query, wherein the user query includes an SQL query statement and a Gremlin graph query statement embedded into the SQL query statement, the Gremlin graph query statement indicates to perform matching on one or more types of graph elements in a target graph, and the one or more types of graph elements include at least one of a point type, an edge type, or a path type; parsing the user query, to determine an execution plan; and performing a data query based on the execution plan.
Claims20
A data query method, performed by a query engine, wherein the method comprises:
- receiving a user query, wherein the user query comprises an SQL query statement and a Gremlin graph query statement embedded into the SQL query statement, the Gremlin graph query statement indicates to perform matching on one or more types of graph elements in a target graph, and the one or more types of graph elements comprise at least one of a point type, an edge type, or a path type;
- parsing the user query, to determine an execution plan;
- and
- performing a data query based on the execution plan.
A device operating as a query engine, comprising:
- a processor;
- and
- a memory storing instructions executable by the processor;
- wherein the processor is configured to:
- receive a user query, wherein the user query comprises an SQL query statement and a Gremlin graph query statement embedded into the SQL query statement, the Gremlin graph query statement indicates to perform matching on one or more types of graph elements in a target graph, and the one or more types of graph elements comprise at least one of a point type, an edge type, or a path type;
- parse the user query, to determine an execution plan;
- and
- perform a data query based on the execution plan.
Dependencies are inferred from the claim text.