zstan commented on a change in pull request #8472:
URL: https://github.com/apache/ignite/pull/8472#discussion_r527027406
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/IgnitePlanner.java
##########
@@ -329,6 +355,20 @@ private SqlToRelConverter sqlToRelConverter(SqlValidator
validator, CalciteCatal
return new SqlToRelConverter(this, validator, reader, cluster(),
convertletTbl, config);
}
+ /** */
+ public void setDisabledRules(Set<String> disabledRuleNames) {
+ ctx.rulesFilter(rulesSet -> {
+ List<RelOptRule> newSet = new ArrayList<>();
+
+ for (RelOptRule r : rulesSet) {
+ if (!disabledRuleNames.contains(r.toString()))
Review comment:
may be only rule name here would be more clear ? i.e. \w+ only? possibly
case insensitive too.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]