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

    https://github.com/apache/spark/pull/18050#discussion_r117682360
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/InsertIntoHiveTableSuite.scala
 ---
    @@ -166,72 +166,54 @@ class InsertIntoHiveTableSuite extends QueryTest with 
TestHiveSingleton with Bef
         sql("DROP TABLE tmp_table")
       }
     
    -  test("INSERT OVERWRITE - partition IF NOT EXISTS") {
    -    withTempDir { tmpDir =>
    -      val table = "table_with_partition"
    -      withTable(table) {
    -        val selQuery = s"select c1, p1, p2 from $table"
    -        sql(
    -          s"""
    -             |CREATE TABLE $table(c1 string)
    -             |PARTITIONED by (p1 string,p2 string)
    -             |location '${tmpDir.toURI.toString}'
    -           """.stripMargin)
    -        sql(
    -          s"""
    -             |INSERT OVERWRITE TABLE $table
    -             |partition (p1='a',p2='b')
    -             |SELECT 'blarr'
    -           """.stripMargin)
    -        checkAnswer(
    -          sql(selQuery),
    -          Row("blarr", "a", "b"))
    -
    -        sql(
    -          s"""
    -             |INSERT OVERWRITE TABLE $table
    -             |partition (p1='a',p2='b')
    -             |SELECT 'blarr2'
    -           """.stripMargin)
    -        checkAnswer(
    -          sql(selQuery),
    -          Row("blarr2", "a", "b"))
    +  testPartitionedTable("INSERT OVERWRITE - partition IF NOT EXISTS") { 
tableName =>
    --- End diff --
    
    anyway, we can fix it later


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