Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/7478#discussion_r35618076
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala ---
@@ -140,7 +142,14 @@ class SQLContext(@transient val sparkContext:
SparkContext)
// TODO how to handle the temp function per user session?
@transient
- protected[sql] lazy val functionRegistry: FunctionRegistry =
FunctionRegistry.builtin
+ protected[sql] lazy val functionRegistry: FunctionRegistry = {
--- End diff --
actually i think there is one more problem here: HiveContext doesn't load
whatever is added here. Can you add a unit test to UDFSuite in Hive package,
and fix this for Hive as well?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]