Skip to content

Commit

Permalink
[HOTFIX] Fix hook calling external catalog
Browse files Browse the repository at this point in the history
Previous merge with upstream broke the build.

Author: Herman van Hovell <hvanhovell@databricks.com>

Closes apache#135 from hvanhovell/fix-hook-calling-external-catalog.
  • Loading branch information
hvanhovell committed Dec 6, 2016
1 parent 4697746 commit 9217946
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ class HookCallingExternalCatalog(val delegate: ExternalCatalog, val hooks: Catal
delegate.listPartitionsByFilter(db, table, predicates)
}

override def listPartitionNames(
db: String,
table: String,
partialSpec: Option[TablePartitionSpec]): Seq[String] = {
delegate.listPartitionNames(db, table, partialSpec)
}

override def createFunction(db: String, funcDefinition: CatalogFunction): Unit = {
val funcName = funcDefinition.identifier.funcName
hooks.beforeCreateFunction(db, funcName)
Expand Down

0 comments on commit 9217946

Please sign in to comment.