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

V2 CreateTableAsSelect command should qualify location

    XMLWordPrintableJSON

Details

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

    Description

      V2 CreateTableAsSelect command should qualify location. Currently, 

       

      spark.sql("CREATE 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

            imback82 Terry Kim
            imback82 Terry Kim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: