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

V2 ReplaceTableAsSelect command should qualify location

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment