GitHub user sandeep-katta opened a pull request: https://github.com/apache/spark/pull/22466
[SPARK-25464][SQL]When database is dropped all the data related to it is deleted Modification content:If the database is external then not required to delete it's content. What changes were proposed in this pull request? If the user specifies the location while creating the Database then it will be considered as External Database. For External Database on dropping the database,location will not be deleted. for e.g create database db1 location '/user/hive/warehouse'; drop database db1; warehouse folder will not be deleted How was this patch tested? Added testcases and also manually verified in the cluster You can merge this pull request into a Git repository by running: $ git pull https://github.com/sandeep-katta/spark dropDatabse Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/22466.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #22466 ---- commit c2eec35d3fb4c0402c4a243c389316aecb639f6f Author: sandeep-katta <sandeep.katta2007@...> Date: 2018-09-18T19:15:52Z RootCause:When database is dropped all the data related to it is deleted Modification content:If the database is external then not required to delete it's content. ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org