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

    https://github.com/apache/spark/pull/11048#discussion_r53568012
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkQl.scala ---
    @@ -16,18 +16,43 @@
      */
     package org.apache.spark.sql.execution
     
    +import scala.collection.mutable.ArrayBuffer
    +
     import org.apache.spark.sql.{AnalysisException, SaveMode}
     import org.apache.spark.sql.catalyst.{CatalystQl, TableIdentifier}
     import org.apache.spark.sql.catalyst.analysis.UnresolvedRelation
    +import org.apache.spark.sql.catalyst.expressions.{Ascending, Descending}
     import org.apache.spark.sql.catalyst.parser.{ASTNode, ParserConf, 
SimpleParserConf}
     import org.apache.spark.sql.catalyst.plans.logical.{LogicalPlan, 
OneRowRelation}
     import org.apache.spark.sql.catalyst.plans.logical
    +import org.apache.spark.sql.execution.commands._
     import org.apache.spark.sql.execution.datasources._
     import org.apache.spark.sql.types.StructType
     
     private[sql] class SparkQl(conf: ParserConf = SimpleParserConf()) extends 
CatalystQl(conf) {
       /** Check if a command should not be explained. */
    -  protected def isNoExplainCommand(command: String): Boolean = 
"TOK_DESCTABLE" == command
    +  protected def isNoExplainCommand(command: String): Boolean =
    +    "TOK_DESCTABLE" == command || "TOK_ALTERTABLE" == command
    +
    +  protected def extractProps(node: ASTNode): Seq[(String, String)] = node 
match {
    --- End diff --
    
    We could make this more DRYly by passing the Token strings and processing 
function (or just unquote the TOK_TABLEOPTION as well).


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

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

Reply via email to