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

    https://github.com/apache/spark/pull/15640#discussion_r85200011
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/SparkSqlParserSuite.scala
 ---
    @@ -220,4 +220,13 @@ class SparkSqlParserSuite extends PlanTest {
     
         intercept("explain describe tables x", "Unsupported SQL statement")
       }
    +
    +  test("SPARK-18106 analyze table") {
    +    assertEqual("analyze table t compute statistics",
    +      AnalyzeTableCommand(TableIdentifier("t"), noscan = false))
    +    assertEqual("analyze table t compute statistics noscan",
    +      AnalyzeTableCommand(TableIdentifier("t"), noscan = true))
    +    intercept("analyze table t compute statistics xxxx", "Expected 
`NOSCAN` instead of `xxxx`")
    +    intercept("analyze table t partition (a) compute statistics xxxx")
    --- End diff --
    
    Nit: `, "Expected `NOSCAN` instead of `xxxx`"` here 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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to