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

    https://github.com/apache/spark/pull/15004#discussion_r78186153
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala 
---
    @@ -871,32 +871,55 @@ class DDLSuite extends QueryTest with 
SharedSQLContext with BeforeAndAfterEach {
       test("alter table: rename partition") {
         val catalog = spark.sessionState.catalog
         val tableIdent = TableIdentifier("tab1", Some("dbx"))
    -    val part1 = Map("a" -> "1", "b" -> "q")
    -    val part2 = Map("a" -> "2", "b" -> "c")
    -    val part3 = Map("a" -> "3", "b" -> "p")
    -    createDatabase(catalog, "dbx")
    -    createTable(catalog, tableIdent)
    -    createTablePartition(catalog, part1, tableIdent)
    -    createTablePartition(catalog, part2, tableIdent)
    -    createTablePartition(catalog, part3, tableIdent)
    -    assert(catalog.listPartitions(tableIdent).map(_.spec).toSet ==
    -      Set(part1, part2, part3))
    +    createPartitionedTable(tableIdent, isDatasourceTable = false)
         sql("ALTER TABLE dbx.tab1 PARTITION (a='1', b='q') RENAME TO PARTITION 
(a='100', b='p')")
    -    sql("ALTER TABLE dbx.tab1 PARTITION (a='2', b='c') RENAME TO PARTITION 
(a='200', b='c')")
    +    sql("ALTER TABLE dbx.tab1 PARTITION (a='2', b='c') RENAME TO PARTITION 
(a='20', b='c')")
    --- End diff --
    
    
https://github.com/gatorsmile/spark/blob/5d0cffe6b59dc36d63f7d1e055903b53ce2fec42/sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala#L878
 will be longer than 100 characters... That is why I changed it to avoid adding 
another line.


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