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

    https://github.com/apache/spark/pull/12121#discussion_r58300635
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala 
---
    @@ -19,34 +19,62 @@ package org.apache.spark.sql.execution.command
     
     import java.io.File
     
    +import org.scalatest.BeforeAndAfterEach
    +
     import org.apache.spark.sql.{AnalysisException, QueryTest, Row}
    -import org.apache.spark.sql.catalyst.catalog.CatalogDatabase
    +import org.apache.spark.sql.catalyst.TableIdentifier
    +import org.apache.spark.sql.catalyst.catalog.{CatalogDatabase, 
CatalogStorageFormat}
    +import org.apache.spark.sql.catalyst.catalog.{CatalogTable, 
CatalogTableType}
    +import org.apache.spark.sql.catalyst.catalog.{CatalogTablePartition, 
SessionCatalog}
    +import 
org.apache.spark.sql.catalyst.catalog.ExternalCatalog.TablePartitionSpec
     import org.apache.spark.sql.test.SharedSQLContext
     
    -class DDLSuite extends QueryTest with SharedSQLContext {
    -
    +class DDLSuite extends QueryTest with SharedSQLContext with 
BeforeAndAfterEach {
       private val escapedIdentifier = "`(.+)`".r
     
    +  override def afterEach(): Unit = {
    +    try {
    +      sqlContext.sessionState.catalog.reset()
    --- End diff --
    
    Add a comment to explain what we are doing at 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