Github user gvramana commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/190#discussion_r80219989
  
    --- Diff: 
integration/spark/src/main/scala/org/apache/spark/sql/optimizer/CarbonOptimizer.scala
 ---
    @@ -68,9 +70,50 @@ object CarbonOptimizer {
      */
     class ResolveCarbonFunctions(relations: Seq[CarbonDecoderRelation])
       extends Rule[LogicalPlan] with PredicateHelper {
    -
    +  val LOGGER = LogServiceFactory.getLogService(this.getClass.getName)
       def apply(plan: LogicalPlan): LogicalPlan = {
    -    transformCarbonPlan(plan, relations)
    +    if (relations.nonEmpty && !isOptimized(plan)) {
    +      LOGGER.info("Starting to optimize plan")
    +      val startTime = System.currentTimeMillis
    +      val result = transformCarbonPlan(plan, relations)
    +      LOGGER.info("Time taken to optimize plan: " + ( 
System.currentTimeMillis - startTime))
    --- End diff --
    
    change the statement to "Time taken for Carbon Optimizer to optimize"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to