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

Check storage.locationUri with existing table in CreateTable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.1
    • 2.3.1, 2.4.0
    • SQL
    • None

    Description

      For CreateTable with Append mode, we should check if `storage.locationUri` is the same with existing table in `PreprocessTableCreation`

      In the current code, there is only a simple exception if the `storage.locationUri` is different with existing table:`org.apache.spark.sql.AnalysisException: Table or view not found:`

      which can be improved.

      Attachments

        Activity

          People

            Gengliang.Wang Gengliang Wang
            Gengliang.Wang Gengliang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: