We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbf9e58 commit bd2040aCopy full SHA for bd2040a
sql/core/src/main/scala/org/apache/spark/sql/execution/command/createDataSourceTables.scala
@@ -105,6 +105,9 @@ case class CreateDataSourceTableCommand(
105
bucketSpec = None,
106
options = optionsWithPath).resolveRelation(checkPathExist = false)
107
} catch {
108
+ // Note that since the table hasn't been created yet, ListingFileCatalog.refresh()
109
+ // (which gets called in ListingFileCatalog's constructor, invoked in resolveRelation)
110
+ // will fail with FileNotFoundException (or SparkException in the parallel version).
111
case e: FileNotFoundException => // Do nothing
112
case e: SparkException if e.getMessage.contains("FileNotFoundException") => // Do nothing
113
case e: Throwable => throw e
0 commit comments