Github user l00357089 commented on a diff in the pull request:
https://github.com/apache/spark/pull/9588#discussion_r45956679
--- 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 --
@dilipbiswal Yes, it works. The test failure does not happen in def
client.listTables, but happens in action map(tableName => getTable(db,
tableName)). In the procedure of map, a DROP TABLE action may occure, and then
getTable you added throw exception.
---
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]