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

1 comment on commit f7e4675

@mmuru
Copy link

@mmuru mmuru commented on f7e4675 Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nousot-cloud-guy: If it is a custom schema then need your fix otherwise default schema should work.

Please sign in to comment.