jackylk commented on a change in pull request #3574: [CARBONDATA-3503] Optimize 
Carbon SparkExtensions
URL: https://github.com/apache/carbondata/pull/3574#discussion_r365581701
 
 

 ##########
 File path: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonExplainCommand.scala
 ##########
 @@ -42,16 +43,37 @@ case class CarbonExplainCommand(
     if (explainCommand.logicalPlan.isStreaming || isCommand) {
       explainCommand.run(sparkSession)
     } else {
-      collectProfiler(sparkSession) ++ explainCommand.run(sparkSession)
+      CarbonExplainCommand.collectProfiler(explainCommand, sparkSession) ++
+      explainCommand.run(sparkSession)
     }
   }
 
-  private def collectProfiler(sparkSession: SparkSession): Seq[Row] = {
+  override protected def opName: String = "EXPLAIN"
+}
+
+case class CarbonInternalExplainCommand(
 
 Review comment:
   Is this required?

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


With regards,
Apache Git Services

Reply via email to