asolimando commented on a change in pull request #3011:
URL: https://github.com/apache/hive/pull/3011#discussion_r804712080



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
##########
@@ -2026,6 +2038,10 @@ protected RelNode 
applyMaterializedViewRewriting(RelOptPlanner planner, RelNode
 
       // Optimize plan
       if (!ruleExclusionRegex.isEmpty()) {
+        if (LOG.isDebugEnabled()) {
+          LOG.debug("The CBO rules matching the following regex are excluded 
from planning: {}",
+              ruleExclusionRegex);
+        }

Review comment:
       Some prefers to protect any string concatenation and/or `.toString()` 
over objects with `isDebugEnabled()`, but I have no problem dropping it, it 
won't make much of a difference here anyway.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to