File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
main/scala/org/apache/spark/sql/catalyst/catalog
test/scala/org/apache/spark/sql/catalyst/catalog Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -939,10 +939,7 @@ class SessionCatalog(
939939 */
940940 def isTemporaryFunction (name : FunctionIdentifier ): Boolean = {
941941 // copied from HiveSessionCatalog
942- val hiveFunctions = Seq (
943- " hash" ,
944- " histogram_numeric" ,
945- " percentile" )
942+ val hiveFunctions = Seq (" histogram_numeric" )
946943
947944 // A temporary function is a function that has been registered in functionRegistry
948945 // without a database name, and is neither a built-in function nor a Hive function
Original file line number Diff line number Diff line change @@ -981,7 +981,6 @@ class SessionCatalogSuite extends SparkFunSuite {
981981 assert(FunctionRegistry .builtin.functionExists(" sum" ))
982982 assert(! sessionCatalog.isTemporaryFunction(FunctionIdentifier (" sum" )))
983983 assert(! sessionCatalog.isTemporaryFunction(FunctionIdentifier (" histogram_numeric" )))
984- assert(! sessionCatalog.isTemporaryFunction(FunctionIdentifier (" percentile" )))
985984 }
986985
987986 test(" drop function" ) {
You can’t perform that action at this time.
0 commit comments