Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -939,10 +939,7 @@ class SessionCatalog(
*/
def isTemporaryFunction(name: FunctionIdentifier): Boolean = {
// copied from HiveSessionCatalog
val hiveFunctions = Seq(
"hash",
"histogram_numeric",
"percentile")
val hiveFunctions = Seq("histogram_numeric")

// A temporary function is a function that has been registered in functionRegistry
// without a database name, and is neither a built-in function nor a Hive function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,6 @@ class SessionCatalogSuite extends SparkFunSuite {
assert(FunctionRegistry.builtin.functionExists("sum"))
assert(!sessionCatalog.isTemporaryFunction(FunctionIdentifier("sum")))
assert(!sessionCatalog.isTemporaryFunction(FunctionIdentifier("histogram_numeric")))
assert(!sessionCatalog.isTemporaryFunction(FunctionIdentifier("percentile")))
}

test("drop function") {
Expand Down