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

V2 ReplaceTableAsSelect command should qualify location

    XMLWordPrintableJSON

Details

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

    Description

      V2 ReplaceTableAsSelect command should qualify location. Currently,

      spark.sql("REPLACE TABLE testcat.t USING foo LOCATION '/tmp/foo' AS SELECT id FROM source")
      spark.sql("DESCRIBE EXTENDED testcat.t").show(false)
      

      displays the location as `/tmp/foo` whereas V1 command displays/stores it as qualified (`file:/tmp/foo`).

      Attachments

        Activity

          People

            huaxingao Huaxin Gao
            huaxingao Huaxin Gao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: