You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/07/09 10:49:12 UTC
[jira] [Assigned] (SPARK-16459) Curren database should become
`default` when current database is dropped
[ https://issues.apache.org/jira/browse/SPARK-16459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-16459:
------------------------------------
Assignee: Apache Spark
> Curren database should become `default` when current database is dropped
> ------------------------------------------------------------------------
>
> Key: SPARK-16459
> URL: https://issues.apache.org/jira/browse/SPARK-16459
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Dongjoon Hyun
> Assignee: Apache Spark
> Priority: Minor
>
> In case of dropping current working database, the current database should be restored as `default`. This issue fixes that.
> {code}
> scala> sql("create database delete_db")
> 16/07/09 03:40:14 WARN ObjectStore: Failed to get database delete_db, returning NoSuchObjectException
> res0: org.apache.spark.sql.DataFrame = []
> scala> sql("use delete_db")
> res1: org.apache.spark.sql.DataFrame = []
> scala> sql("drop database delete_db")
> res2: org.apache.spark.sql.DataFrame = []
> 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