Skip to content

Commit

Permalink
Revert "[KYUUBI #1458] Delta lake table columns won't show up in DBea…
Browse files Browse the repository at this point in the history
…ver."

This reverts commit b87d206.
  • Loading branch information
nousot-cloud-guy committed Feb 4, 2023
1 parent 20337dc commit a6d973a
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,7 @@ class CatalogShim_v2_4 extends SparkCatalogShim {
databases.flatMap { db =>
val identifiers = catalog.listTables(db, tablePattern, includeLocalTempViews = true)
catalog.getTablesByName(identifiers).flatMap { t =>
val tableSchema =
if (t.provider.getOrElse("").equalsIgnoreCase("delta")) {
spark.table(t.identifier.table).schema
} else {
t.schema
}
tableSchema.zipWithIndex.filter(f => columnPattern.matcher(f._1.name).matches())
t.schema.zipWithIndex.filter(f => columnPattern.matcher(f._1.name).matches())
.map { case (f, i) => toColumnResult(catalogName, t.database, t.identifier.table, f, i) }
}
}
Expand Down

0 comments on commit a6d973a

Please sign in to comment.