Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15423#discussion_r84204534
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala 
---
    @@ -1713,4 +1713,21 @@ class DDLSuite extends QueryTest with 
SharedSQLContext with BeforeAndAfterEach {
           assert(sql("show user functions").count() === 1L)
         }
       }
    +
    +  test("show columns - negative test") {
    +    // When case sensitivity is true, the user supplied database name in 
table identifier
    +    // should match the supplied database name in case sensitive way.
    +    withSQLConf(SQLConf.CASE_SENSITIVE.key -> "true") {
    +      withTempDatabase { db =>
    +        val tabName = s"$db.showcolumn"
    +        withTable(tabName) {
    +          sql(s"CREATE TABLE $tabName(col1 int, col2 string) USING parquet 
")
    +          val message = intercept[AnalysisException] {
    +          sql(s"SHOW COLUMNS IN $db.showcolumn FROM ${db.toUpperCase}")
    --- End diff --
    
    nit: wrong ident here.


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