Github user gvramana commented on a diff in the pull request:
https://github.com/apache/incubator-carbondata/pull/190#discussion_r80220071
--- 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 --
add this to STATISTICS logger type
---
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 [email protected] or file a JIRA ticket
with INFRA.
---