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

    https://github.com/apache/spark/pull/14155#discussion_r74680428
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala 
---
    @@ -396,40 +393,6 @@ class DDLSuite extends QueryTest with SharedSQLContext 
with BeforeAndAfterEach {
         assert(e.message == "Found duplicate column(s) in bucket: a")
       }
     
    -  test("Describe Table with Corrupted Schema") {
    -    import testImplicits._
    -
    -    val tabName = "tab1"
    -    withTempPath { dir =>
    -      val path = dir.getCanonicalPath
    -      val df = sparkContext.parallelize(1 to 10).map(i => (i, 
i.toString)).toDF("col1", "col2")
    -      df.write.format("json").save(path)
    -
    -      withTable(tabName) {
    -        sql(
    -          s"""
    -             |CREATE TABLE $tabName
    -             |USING json
    -             |OPTIONS (
    -             |  path '$path'
    -             |)
    -           """.stripMargin)
    -
    -        val catalog = spark.sessionState.catalog
    -        val table = catalog.getTableMetadata(TableIdentifier(tabName))
    -        val newProperties = table.properties.filterKeys(key =>
    -          key != CreateDataSourceTableUtils.DATASOURCE_SCHEMA_NUMPARTS)
    -        val newTable = table.copy(properties = newProperties)
    -        catalog.alterTable(newTable)
    -
    -        val e = intercept[AnalysisException] {
    -          sql(s"DESC $tabName")
    -        }.getMessage
    -        assert(e.contains(s"Could not read schema from the metastore 
because it is corrupted"))
    -      }
    -    }
    -  }
    --- End diff --
    
    sorry forget to comment, it's moved to 
https://github.com/apache/spark/pull/14155/files#diff-21a2d022682644c5c1cda0a4cf4c4114R1196


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