You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-30 07:25:34 +03:00 
			
		
		
		
	MCOL-6145: mcsgetplan() UDF for CSEP printing
This commit is contained in:
		| @@ -102,10 +102,15 @@ bool Rule::apply(execplan::CalpontSelectExecutionPlan& root, optimizer::RBOptimi | ||||
|   { | ||||
|     changedThisRound = walk(root, ctx); | ||||
|     hasBeenApplied |= changedThisRound; | ||||
|     if (ctx.logRules && changedThisRound) | ||||
|     if (ctx.logRulesEnabled() && changedThisRound) | ||||
|     { | ||||
|       std::cout << "MCS RBO: " << name << " has been applied this round." << std::endl; | ||||
|     } | ||||
|     if (changedThisRound) | ||||
|     { | ||||
|       // Record rule application | ||||
|       ctx.addAppliedRule(name); | ||||
|     } | ||||
|   } while (changedThisRound && !applyOnlyOnce); | ||||
|  | ||||
|   return hasBeenApplied; | ||||
| @@ -149,7 +154,7 @@ bool Rule::walk(execplan::CalpontSelectExecutionPlan& csep, optimizer::RBOptimiz | ||||
|     if (mayApply(*current, ctx)) | ||||
|     { | ||||
|       rewrite |= applyRule(*current, ctx); | ||||
|       ++ctx.uniqueId; | ||||
|       ctx.incrementUniqueId(); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user