Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12036#discussion_r57944538
  
    --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUDFs.scala 
---
    @@ -55,61 +57,133 @@ private[hive] class HiveFunctionRegistry(
         }
       }
     
    -  override def lookupFunction(name: String, children: Seq[Expression]): 
Expression = {
    -    Try(underlying.lookupFunction(name, children)).getOrElse {
    -      // We only look it up to see if it exists, but do not include it in 
the HiveUDF since it is
    -      // not always serializable.
    -      val functionInfo: FunctionInfo =
    -        Option(getFunctionInfo(name.toLowerCase)).getOrElse(
    -          throw new AnalysisException(s"undefined function $name"))
    +  def loadHivePermanentFunction(name: String): Option[CatalogFunction] = {
    --- End diff --
    
    Make this private. Also please add some java doc to explain what it's 
doing. Even 1 sentence is better than nothing.


---
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]

Reply via email to