Eric5553 opened a new pull request #27952: [SPARK-31184][SQL] Support getTablesByType API of Hive Client URL: https://github.com/apache/spark/pull/27952 ### What changes were proposed in this pull request? Hive 2.3+ supports `getTablesByType` API, which is a precondition to implement SHOW VIEWS in HiveExternalCatalog. Currently, without this API, we can not get hive tables with type `HiveTableType.VIRTUAL_VIEW` directly. This PR add `getTablesByType` in `HiveShim`. For those hive versions don't support this API, `UnsupportedOperationException` will be thrown. Since the JDK11 related hive fix is not released yet(https://issues.apache.org/jira/browse/SPARK-29245), manual tests against hive 2.3.7-SNAPSHOT is done by issuing `SHOW VIEWS` command. https://github.com/apache/spark/pull/27897 ### Why are the changes needed? This API will provide better usability and performance if we want to get a list of hiveTables with specific type. For example `HiveTableType.VIRTUAL_VIEW` corresponding to `CatalogTableType.VIEW`. ### Does this PR introduce any user-facing change? No, this is a support function. ### How was this patch tested? Add tests in VersionsSuite and manually run JDK11 test
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org