Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/22466#discussion_r220553606 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala --- @@ -66,6 +66,19 @@ case class CreateDatabaseCommand( extends RunnableCommand { override def run(sparkSession: SparkSession): Seq[Row] = { + // SPARK-25464 fail if DB location exists and is not empty + if (path.isDefined) { --- End diff -- not sure if we should do it here or in the external catalog, cc @gatorsmile
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org