Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33381 Unify DSv1 and DSv2 command tests
  3. SPARK-33924

v2 INSERT INTO .. PARTITION drops the partition location

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      See the test "with location" in v2.AlterTableRenamePartitionSuite:

      val loc = "location1"
      sql(s"ALTER TABLE $t ADD PARTITION (id = 2) LOCATION '$loc'")
      checkLocation(t, Map("id" -> "2"), loc)
      
      sql(s"INSERT INTO $t PARTITION (id = 2) SELECT 'def'")
      checkLocation(t, Map("id" -> "2"), loc)
      

      The second check must not fail.

      Attachments

        Activity

          People

            apachespark Apache Spark
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: