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

Throw Exception if overwriting hive partition table with dynamic and staticPartitionOverwriteMode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      The `spark.sql.sources.partitionOverwriteMode` allows us to overwrite the existing data of the table through staticmode, but for hive table, it is disastrous. It may deleting all data in hive partitioned table while writing with dynamic overwrite and `partitionOverwriteMode=STATIC`.

      Here we add a check for this and throw Exception if this happends.

      Attachments

        Activity

          People

            Jackey Lee Jackey Lee
            Jackey Lee Jackey Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: