dongjoon-hyun commented on a change in pull request #27952: [SPARK-31184][SQL]
Support getTablesByType API of Hive Client
URL: https://github.com/apache/spark/pull/27952#discussion_r395451362
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
##########
@@ -755,6 +755,22 @@ private[hive] class HiveClientImpl(
client.getTablesByPattern(dbName, pattern).asScala
}
+ override def listTablesByType(
+ dbName: String,
+ pattern: String,
+ tableType: CatalogTableType): Seq[String] = withHiveState {
+ try {
+ // Try with Hive API getTablesByType first, it's supported from Hive 2.3.
Review comment:
`Hive 2.3` -> `Hive 2.3+`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]