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

Prevent dropping current database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • SQL
    • None

    Description

      This issue prevents dropping the current database to avoid errors like the followings.

      scala> sql("create database delete_db")
      scala> sql("use delete_db")
      scala> sql("drop database delete_db")
      scala> sql("create table t as select 1")
      org.apache.spark.sql.catalyst.analysis.NoSuchDatabaseException: Database 'delete_db' not found;
      

      Attachments

        Issue Links

          Activity

            People

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: