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

    https://github.com/apache/spark/pull/2381#discussion_r17529073
  
    --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala ---
    @@ -243,14 +244,12 @@ private[hive] object HiveQl {
           } else if (sql.trim.startsWith("!")) {
             ShellCommand(sql.drop(1))
           } else {
    -        val tree = getAst(sql)
    -        if (nativeCommands contains tree.getText) {
    -          NativeCommand(sql)
    +        if (sql.trim.toLowerCase.startsWith("add cache table")) {
    +          sql.trim.drop(16).split(" ").toSeq match {
    +           case Seq(tableName,as, xs@_*) => 
CacheTableAsSelectCommand(tableName,createPlan(sql.trim.drop(16+tableName.length()+as.length()+1)))
 
    --- End diff --
    
    Thank you for guiding me. I have run the ```sbt/sbt scalastyle``` and 
updated the code


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