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

Fix issue of the createTable when externalCatalog is InMemoryCatalog

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • SQL
    • None

    Description

      In the case of externalCatalog is InMemoryCatalog, Using a different SparkSession will report the following error when create the same table , as follow

      sparkSession.sql("create table if not exists t1 (id Int) using orc")
      sparkSession.sql("insert into t1 values(1)")
      
      // will report error as follow
      sparkSession2.sql("create table if not exists t1 (id Int) using orc") 
      Can not create the managed table('`default`.`t1`'). The associated location('file:***/t1') already exists.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kaifeiYi yikaifei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: