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

Fix CTAS when INSERT a partitioned table using Hive serde

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2, 2.4.0
    • Fix Version/s: 2.3.3, 2.4.1, 3.0.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: