Query plan converting method and device
A technology of query planning and planning, applied in the computer field, can solve problems such as application scene restrictions, and achieve the effect of reducing the number
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] An embodiment of the present invention provides a query plan conversion method, which can be applied to the process of converting a logical query plan into a physical query plan, such as figure 1 As shown, the query plan transformation method includes:
[0064] S101. The query plan conversion device extracts a first query operator and a second query operator from a logical query plan, where the first query operator is a predecessor operator of the second query operator.
[0065] Wherein, the method for the query plan conversion device to extract the first query operator and the second query operator from the logical query plan may include: the query plan conversion device searches the logical query plan for two query operators that have a predecessor-successor relationship, And respectively determine the partition attributes of the two query operators with the predecessor-successor relationship; when the partition attribute of the predecessor query operator in the two q...
Embodiment 2
[0083] An embodiment of the present invention provides a query plan conversion method, which can be applied in the process of converting a logical query plan to a physical query plan. The query plan conversion method includes:
[0084] S201. The query plan conversion device extracts a first query operator and a second query operator from a logical query plan, where the first query operator is a predecessor operator of the second query operator.
[0085] The first query operator being the predecessor operator of the second query operator may specifically include: the first query operator being the direct predecessor operator of the second query operator, the interval between the first query operator and the second query operator There is a third query operator.
[0086] In the first application scenario of the embodiment of the present invention, such as image 3 As shown, after the query plan conversion device extracts the first query operator and the second query operator, t...
Embodiment 3
[0152] An embodiment of the present invention provides a query plan conversion device, such as Figure 8 As shown, it includes: an extracting unit 31 , a first rewriting unit 32 , a deleting unit 33 and a generating unit 34 .
[0153] The extracting unit 31 is configured to extract a first query operator and a second query operator from the logical query plan, where the first query operator is a predecessor operator of the second query operator.
[0154] The first rewriting unit 32 is used to rewrite the second query operator in the logical query plan if the partition attribute of the first query operator extracted by the extraction unit 31 is the prefix of the partition attribute of the second query operator extracted by the extraction unit. A partition attribute such that the partition attribute of the second query operator is the same as the partition attribute of the first query operator.
[0155] The deleting unit 33 is configured to delete the partition operator of the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 