Query plan converting method and device

The embodiment of the invention discloses a query plant converting method and a query plan converting device, relates to the field of computers, which can greatly reduce the quantity of physical query tasks constituting a physical query plan. The query plan converting method specifically comprises the steps of extracting a first query operator and a second query operator from a logic query plan; if the partition property of the first query operator is the prefix of the partition property of the second query operator, rewriting the partition property of the second query operator in the logic query plan, thus allowing the partition property of the second query operator to be the same as the partition property of the first query operator; deleting the partition operator of the second query operator in the logic query plan, and generating a physical query task according to the second query operator, the first query operator and the partition operator of the first query operator to constitute the physical query plan. The query plant converting method is applied to the process of converting the logic query plan into the physical query plan.