Class ReorderLimitProjectAndOrderBy
java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<UnaryPlan,LogicalPlan>
org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule<UnaryPlan>
org.elasticsearch.xpack.esql.optimizer.rules.logical.ReorderLimitProjectAndOrderBy
This is to fix possible wrong orderings of Limit, Project and Order or LimitBy, Project and OrderBy.
We should always end up with Limit on top of OrderBy so we can turn it into TopN
We should always end up with LimitBy on top of OrderBy so we can turn it into TopNBy
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.elasticsearch.xpack.esql.optimizer.rules.logical.OptimizerRules.OptimizerRule
apply
-
Constructor Details
-
ReorderLimitProjectAndOrderBy
public ReorderLimitProjectAndOrderBy()
-
-
Method Details
-
rule
- Specified by:
rulein classOptimizerRules.OptimizerRule<UnaryPlan>
-