This repository was archived by the owner on Sep 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ class Optimizer : public AbstractOptimizer {
73
73
74
74
void Reset () override ;
75
75
76
+ OptimizerMetadata &GetMetadata () { return metadata_; }
77
+
78
+ /* For test purposes only */
79
+ std::shared_ptr<GroupExpression> TestInsertQueryTree (parser::SQLStatement *tree,
80
+ concurrency::TransactionContext *txn) {
81
+ return InsertQueryTree (tree, txn);
82
+ }
83
+
76
84
private:
77
85
/* HandleDDLStatement - Check and handle DDL statment (currently only support
78
86
*CREATE), set
Original file line number Diff line number Diff line change @@ -146,6 +146,10 @@ class RuleSet {
146
146
return rewrite_rules_map_[static_cast <uint32_t >(set)];
147
147
}
148
148
149
+ std::unordered_map<uint32_t , std::vector<std::unique_ptr<Rule>>> &GetRewriteRulesMap () { return rewrite_rules_map_; }
150
+
151
+ std::vector<std::unique_ptr<Rule>> &GetPredicatePushDownRules () { return predicate_push_down_rules_; }
152
+
149
153
private:
150
154
std::vector<std::unique_ptr<Rule>> transformation_rules_;
151
155
std::vector<std::unique_ptr<Rule>> implementation_rules_;
You can’t perform that action at this time.
0 commit comments