Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/22466#discussion_r220795176 --- 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 -- Just want to confirm it what is the behavior of Hive (3.x) when we try to create a database in a non-empty file path?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org