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

Acknowledge Append Mode in DataFrameWriter

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.4.1, 1.5.1
    • None
    • Java API, Spark Submit, SQL
    • None
    • Spark stand alone cluster

    Description

      DataFramewriter is not acknowledging Append Mode.

      In case of Append Mode => It is verfiying if the table exists and creating a new table if it is not there and then Inserting data.
      If the table exists check is failed for whatsover reason, it still assumes table doesnt exists and creates a new table.

      As per my understanding, Append should perform "no DDL". It is okay to throw error saying "table doesnt exist for Inserts'. But creating a Table should not be allowed in Append Mode.

      I believe we should do two things here

      perform DDL => if and only if table exists check results "Not exists"
      do not perform DDL => if SaveMode is Append

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            sgudavalli Siva Gudavalli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment