Closed xudong963 closed 2 months ago
Introduction of RulePushDownLimit in RuleFactory
This change includes the addition of the RulePushDownLimit
in Planner's Optimizer RuleFactory file. This is a key part of the code where we define different rules our code needs to follow.
Creation of rule_push_down_limit.rs File
We've introduced a new file named rule_push_down_limit.rs
in the rewrite rule directory. This file holds all the necessary functionality related to the PushDownLimit
rule.
Implementing RulePushDownLimit
In the file rule_push_down_limit.rs
, we've added the RulePushDownLimit
implementation part. This means we've set the instructions for how this rule should work in certain scenarios when the code is being executed.
Inclusion of RuleID::PushDownLimit
We've added RuleID::PushDownLimit
in the list of default rewrite rules. This means the newly added rule is now part of the set of rules available by default when rewriting scripts in the planner optimizer.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
Tests
Type of change
This change isโ