Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ case class DataSourceV2Relation(
import org.apache.spark.sql.connector.catalog.CatalogV2Implicits._
(catalog, identifier) match {
case (Some(cat), Some(ident)) => s"${quoteIfNeeded(cat.name())}.${ident.quoted}"
case (None, None) => table.name()
case _ =>
throw SparkException.internalError(
"Invalid catalog and identifier pair. Both 'catalog' and 'identifier' must be " +
s"specified or leave as None. Current input - " +
s"catalog: '${catalog.map(_.name()).getOrElse(None)}', " +
s"identifier: ${identifier.map(_.quoted).getOrElse(None)}.")
case _ => table.name()
}
}

Expand Down