Github user l00357089 commented on a diff in the pull request:
https://github.com/apache/spark/pull/9588#discussion_r45952083
--- 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 Hello, are you still working on this problem? I 'm still
interested in this problem and think it is this part that causes SPARK-6618
test failed. Cause the test is about concurrent acces to metastore, after
client.listTables gets all the tables, then DROP TABLE action may occur, and
then run getTable will thrown NosuchTable 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]