viirya commented on a change in pull request #24385: [SPARK-27480][SQL] Improve 
explain output of describe query command to show the actual input query as 
opposed to a truncated logical plan.
URL: https://github.com/apache/spark/pull/24385#discussion_r276061200
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
 ##########
 @@ -639,7 +639,7 @@ case class DescribeTableCommand(
  *    select * from (from a select * select *)
  * 7. Common table expressions (CTEs)
  */
-case class DescribeQueryCommand(query: LogicalPlan)
+case class DescribeQueryCommand(queryText: String)(query: LogicalPlan)
 
 Review comment:
   Can't we just have:
   
   ```scala
   case class DescribeQueryCommand(queryText: String, query: LogicalPlan)
   ```

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

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

Reply via email to