You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2016/07/11 13:17:11 UTC
[jira] [Resolved] (SPARK-16459) Prevent dropping current database
[ https://issues.apache.org/jira/browse/SPARK-16459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herman van Hovell resolved SPARK-16459.
---------------------------------------
Resolution: Fixed
Assignee: Dongjoon Hyun
Fix Version/s: 2.1.0
> Prevent dropping current database
> ---------------------------------
>
> Key: SPARK-16459
> URL: https://issues.apache.org/jira/browse/SPARK-16459
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Dongjoon Hyun
> Assignee: Dongjoon Hyun
> Priority: Minor
> Fix For: 2.1.0
>
>
> This issue prevents dropping the current database to avoid errors like the followings.
> {code}
> 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;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org