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

Check invalid cases for the write path of data source API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • SQL
    • None

    Description

      Right now, with the newly introduced write support of data source API, JSONRelation and ParquetRelation2 both delete data first when the save mode is overwrite (here) and this behavior introduces issues when the destination table is an input table of the query. For example

      INSERT OVERWRITE t SELECT * FROM t
      

      We need to add an analysis rule to check cases that are invalid for the write path of data source API.

      Attachments

        Issue Links

          Activity

            People

              lian cheng Cheng Lian
              lian cheng Cheng Lian
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: