Github user dilipbiswal commented on a diff in the pull request:
https://github.com/apache/spark/pull/9588#discussion_r45954864
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala ---
@@ -491,10 +493,14 @@ private[hive] class HiveMetastoreCatalog(val client:
ClientInterface, hive: Hive
result.copy(expectedOutputAttributes = Some(metastoreRelation.output))
}
- override def getTables(databaseName: Option[String]): Seq[(String,
Boolean)] = {
+ override def getTables(databaseName: Option[String]): Seq[(String,
Boolean)] = {hive
val db = databaseName.getOrElse(client.currentDatabase)
+ client.listTables(db).map(tableName => getTable(db, tableName))
--- End diff --
@l00357089 did you try it and it works ? shouldn't that call go through
ClientWrapper which has the enclosing withHiveState ?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]