Skip to content

Commit

Permalink
Using DB and table name when checking Delta table schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
nousot-cloud-guy committed Jan 30, 2023
1 parent 7c036fb commit f7e4675
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CatalogShim_v2_4 extends SparkCatalogShim {
catalog.getTablesByName(identifiers).flatMap { t =>
val tableSchema =
if (t.provider.getOrElse("").equalsIgnoreCase("delta")) {
spark.table(t.identifier.table).schema
spark.table(f"${db}.${t.identifier.table}").schema
} else {
t.schema
}
Expand Down

0 comments on commit f7e4675

Please sign in to comment.