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

Spark SQL drops the table in "overwrite" mode while writing into table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.6.0
    • None
    • SQL
    • None

    Description

      Hi,

      While writing the dataframe to HIVE table with "SaveMode.Overwrite" option.

      E.g.
      tgtFinal.write.mode(SaveMode.Overwrite).saveAsTable("tgt_table")

      sqlContext drop the table instead of truncating.

      This is causing error while overwriting.

      Adding stacktrace & commands to reproduce the issue,

      Thanks & Regards,
      Dhaval

      Attachments

        1. stackTrace.txt
          29 kB
          Dhaval Modi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mysti Dhaval Modi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: