Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26307

Fix CTAS when INSERT a partitioned table using Hive serde

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.2, 2.4.0
    • 2.3.3, 2.4.1, 3.0.0
    • SQL
    • None

    Description

          withTable("hive_test") {
            withSQLConf(
                "hive.exec.dynamic.partition.mode" -> "nonstrict") {
              val df = Seq(("a", 100)).toDF("part", "id")
              df.write.format("hive").partitionBy("part")
                .mode("overwrite").saveAsTable("hive_test")
              df.write.format("hive").partitionBy("part")
                .mode("append").saveAsTable("hive_test")
            }
          }

      Attachments

        Activity

          People

            smilegator Xiao Li
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: