cloud-fan commented on a change in pull request #34388:
URL: https://github.com/apache/spark/pull/34388#discussion_r736515709
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala
##########
@@ -484,6 +549,111 @@ private[client] class Shim_v0_12 extends Shim with
Logging {
override def getDatabaseOwnerName(db: Database): String = ""
override def setDatabaseOwnerName(db: Database, owner: String): Unit = {}
+
+ override def createDatabase(hive: Hive, db: Database, ignoreIfExists:
Boolean): Unit = {
+ hive.createDatabase(db, ignoreIfExists)
+ }
+
+ override def dropDatabase(
+ hive: Hive,
+ name: String,
+ deleteData: Boolean,
+ ignoreUnknownDb: Boolean,
+ cascade: Boolean): Unit = {
+ hive.dropDatabase(name, deleteData, ignoreUnknownDb, cascade)
+ }
+
+ override def alterDatabase(hive: Hive, dbName: String, d: Database): Unit = {
+ hive.alterDatabase(dbName, d)
+ }
+
+ override def getDatabase(hive: Hive, dbName: String): Database = {
+ hive.getDatabase(dbName)
+ }
+
+ override def getAllDatabases(hive: Hive): JList[String] = {
+ hive.getAllDatabases
+ }
+
+ override def getDatabasesByPattern(hive: Hive, pattern: String):
JList[String] = {
+ hive.getDatabasesByPattern(pattern)
+ }
+
+ override def databaseExists(hive: Hive, dbName: String): Boolean = {
+ hive.databaseExists(dbName)
+ }
+
+ override def createTable(hive: Hive, table: Table, ifNotExists: Boolean):
Unit = {
+ hive.createTable(table, ifNotExists)
+ }
+
+ override def getTable(
+ hive: Hive,
+ dbName: String,
+ tableName: String,
+ throwException: Boolean): Table = {
+ hive.getTable(dbName, tableName, throwException)
+ }
+
+ override def getTablesByPattern(hive: Hive, dbName: String, pattern:
String): JList[String] = {
+ hive.getTablesByPattern(dbName, pattern)
+ }
+
+ override def getAllTables(hive: Hive, dbName: String): JList[String] = {
+ hive.getAllTables(dbName)
Review comment:
```suggestion
hive.getAllTables(dbName)
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]