You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by gatorsmile <gi...@git.apache.org> on 2017/07/21 08:05:42 UTC

[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/18700

    [SPARK-21499] [SQL] Support creating persistent function for Spark UDAF(UserDefinedAggregateFunction)

    ## What changes were proposed in this pull request?
    This PR is to enable users to create persistent Scala UDAF (that extends UserDefinedAggregateFunction). 
    
    ```SQL
    CREATE FUNCTION myDoubleAvg AS 'test.org.apache.spark.sql.MyDoubleAvg'
    ```
    
    
    ## How was this patch tested?
    Added test cases

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark javaUDFinScala

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18700.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18700
    
----
commit 40281551f461ecb5f3c1720d1ed45d885e5353a6
Author: gatorsmile <ga...@gmail.com>
Date:   2017-07-21T07:59:09Z

    support UDAF

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80577 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80577/testReport)** for PR 18700 at commit [`12cefc2`](https://github.com/apache/spark/commit/12cefc24ebd73c5f986bea50d0d30ca7ff791ae2).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80996 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80996/testReport)** for PR 18700 at commit [`aff8f9e`](https://github.com/apache/spark/commit/aff8f9efd490296005607310c0faaf7970cc352d).
     * This patch **fails SparkR unit tests**.
     * This patch **does not merge cleanly**.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r134244640
  
    --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala ---
    @@ -58,44 +58,11 @@ private[sql] class HiveSessionCatalog(
           parser,
           functionResourceLoader) {
     
    -  override def makeFunctionBuilder(funcName: String, className: String): FunctionBuilder = {
    -    makeFunctionBuilder(funcName, Utils.classForName(className))
    -  }
    -
    -  /**
    -   * Construct a [[FunctionBuilder]] based on the provided class that represents a function.
    -   */
    -  private def makeFunctionBuilder(name: String, clazz: Class[_]): FunctionBuilder = {
    -    // When we instantiate hive UDF wrapper class, we may throw exception if the input
    -    // expressions don't satisfy the hive UDF, such as type mismatch, input number
    -    // mismatch, etc. Here we catch the exception and throw AnalysisException instead.
    +  override def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    --- End diff --
    
    This is for issuing different exceptions. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/18700


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80995 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80995/testReport)** for PR 18700 at commit [`05e8168`](https://github.com/apache/spark/commit/05e8168af15abf3fe3a8448a73b1ff41d4a9d682).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    retest this please


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r132996396
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -1096,8 +1099,42 @@ class SessionCatalog(
        * This performs reflection to decide what type of [[Expression]] to return in the builder.
        */
       protected def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    -    // TODO: at least support UDAFs here
    -    throw new UnsupportedOperationException("Use sqlContext.udf.register(...) instead.")
    +    makeFunctionBuilder(name, Utils.classForName(functionClassName))
    +  }
    +
    +  /**
    +   * Construct a [[FunctionBuilder]] based on the provided class that represents a function.
    +   */
    +  private def makeFunctionBuilder(name: String, clazz: Class[_]): FunctionBuilder = {
    +    // When we instantiate ScalaUDAF class, we may throw exception if the input
    +    // expressions don't satisfy the UDAF, such as type mismatch, input number
    +    // mismatch, etc. Here we catch the exception and throw AnalysisException instead.
    +    (children: Seq[Expression]) => {
    +      try {
    +        val clsForUDAF =
    +          Utils.classForName("org.apache.spark.sql.expressions.UserDefinedAggregateFunction")
    --- End diff --
    
    ```Scala
    /**
     * The base class for implementing user-defined aggregate functions (UDAF).
     *
     * @since 1.5.0
     */
    @InterfaceStability.Stable
    abstract class UserDefinedAggregateFunction
    ```
    
    This interface has been marked as stable. Can we still move it? or make a trait in Catalyst? 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80924 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80924/testReport)** for PR 18700 at commit [`bd5ae26`](https://github.com/apache/spark/commit/bd5ae2616d67d42eacfbab110b684f2219afb6d6).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80553 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80553/testReport)** for PR 18700 at commit [`4028155`](https://github.com/apache/spark/commit/40281551f461ecb5f3c1720d1ed45d885e5353a6).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80553 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80553/testReport)** for PR 18700 at commit [`4028155`](https://github.com/apache/spark/commit/40281551f461ecb5f3c1720d1ed45d885e5353a6).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `      throw new AnalysisException(s\"Can not load class '$className' when registering \" +`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80995/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80577/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80577 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80577/testReport)** for PR 18700 at commit [`12cefc2`](https://github.com/apache/spark/commit/12cefc24ebd73c5f986bea50d0d30ca7ff791ae2).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    cc @cloud-fan @ueshin 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #79829 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/79829/testReport)** for PR 18700 at commit [`4028155`](https://github.com/apache/spark/commit/40281551f461ecb5f3c1720d1ed45d885e5353a6).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80933 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80933/testReport)** for PR 18700 at commit [`7251be9`](https://github.com/apache/spark/commit/7251be9386656e590c86c75be466779bdd2e076d).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80974/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80996/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80933/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r134396737
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -1091,13 +1102,49 @@ class SessionCatalog(
       // ----------------------------------------------------------------
     
       /**
    +   * Constructs a [[FunctionBuilder]] based on the provided class that represents a function.
    +   */
    +  protected def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    +    val clazz = Utils.classForName(functionClassName)
    +    (children: Seq[Expression]) => {
    +      try {
    +        makeFunctionExpression(name, Utils.classForName(functionClassName), children).getOrElse {
    --- End diff --
    
    `Utils.classForName(functionClassName)` -> `clazz`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r134397113
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -1091,13 +1102,49 @@ class SessionCatalog(
       // ----------------------------------------------------------------
     
       /**
    +   * Constructs a [[FunctionBuilder]] based on the provided class that represents a function.
    +   */
    +  protected def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    +    val clazz = Utils.classForName(functionClassName)
    +    (children: Seq[Expression]) => {
    +      try {
    +        makeFunctionExpression(name, Utils.classForName(functionClassName), children).getOrElse {
    +          val extraMsg =
    +            if (!isUsingHiveMetastore) "Use sparkSession.udf.register(...) instead." else ""
    +          throw new AnalysisException(
    +            s"No handler for UDF/UDAF/UDTF '${clazz.getCanonicalName}'. $extraMsg")
    +        }
    +      } catch {
    +        case ae: AnalysisException =>
    +          throw ae
    +        case NonFatal(e) =>
    +          val analysisException =
    +            new AnalysisException(s"No handler for UDF/UDAF/UDTF '${clazz.getCanonicalName}': $e")
    +          analysisException.setStackTrace(e.getStackTrace)
    +          throw analysisException
    +      }
    +    }
    +  }
    +
    +  /**
        * Construct a [[FunctionBuilder]] based on the provided class that represents a function.
        *
        * This performs reflection to decide what type of [[Expression]] to return in the builder.
        */
    -  protected def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    -    // TODO: at least support UDAFs here
    -    throw new UnsupportedOperationException("Use sqlContext.udf.register(...) instead.")
    +  protected def makeFunctionExpression(
    --- End diff --
    
    seems we need to catch exception for this method anyway, how about we just make this method return `Expression` and document that it can throw exception if the given class is not supported? Then `HiveSessionCatalog` can define its own exception message.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80995 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80995/testReport)** for PR 18700 at commit [`05e8168`](https://github.com/apache/spark/commit/05e8168af15abf3fe3a8448a73b1ff41d4a9d682).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r132961933
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -1096,8 +1099,42 @@ class SessionCatalog(
        * This performs reflection to decide what type of [[Expression]] to return in the builder.
        */
       protected def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    --- End diff --
    
    this will be overwritten by `HiveSessionCatalog`, does it mean we can not register spark UDAF if hive support is enable?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80997 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80997/testReport)** for PR 18700 at commit [`50224a7`](https://github.com/apache/spark/commit/50224a7d2bf7db7f6b042681cb658e60967261b1).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r134237582
  
    --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala ---
    @@ -58,44 +58,11 @@ private[sql] class HiveSessionCatalog(
           parser,
           functionResourceLoader) {
     
    -  override def makeFunctionBuilder(funcName: String, className: String): FunctionBuilder = {
    -    makeFunctionBuilder(funcName, Utils.classForName(className))
    -  }
    -
    -  /**
    -   * Construct a [[FunctionBuilder]] based on the provided class that represents a function.
    -   */
    -  private def makeFunctionBuilder(name: String, clazz: Class[_]): FunctionBuilder = {
    -    // When we instantiate hive UDF wrapper class, we may throw exception if the input
    -    // expressions don't satisfy the hive UDF, such as type mismatch, input number
    -    // mismatch, etc. Here we catch the exception and throw AnalysisException instead.
    +  override def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    --- End diff --
    
    do we still need to overwrite this?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r132994080
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -1096,8 +1099,42 @@ class SessionCatalog(
        * This performs reflection to decide what type of [[Expression]] to return in the builder.
        */
       protected def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    --- End diff --
    
    The changes [here](https://github.com/apache/spark/pull/18700/files#diff-ca4533edbf148c89cc0c564ab6b0aeaa) are for `HiveSessionCatalog`. Also, we have a test case in `HiveUDAFSuite.scala` to verify it.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80575 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80575/testReport)** for PR 18700 at commit [`a65607c`](https://github.com/apache/spark/commit/a65607c2e31762b7f17c7ea64248c504557350d8).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `          throw new AnalysisException(s\"Can not load class '$className' when registering \" +`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80974 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80974/testReport)** for PR 18700 at commit [`d3fbdc5`](https://github.com/apache/spark/commit/d3fbdc5d0f67a422395b76bd1035fe7fb95f7de1).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80924 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80924/testReport)** for PR 18700 at commit [`bd5ae26`](https://github.com/apache/spark/commit/bd5ae2616d67d42eacfbab110b684f2219afb6d6).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r134531796
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -1091,13 +1102,33 @@ class SessionCatalog(
       // ----------------------------------------------------------------
     
       /**
    -   * Construct a [[FunctionBuilder]] based on the provided class that represents a function.
    +   * Constructs a [[FunctionBuilder]] based on the provided class that represents a function.
    +   */
    +  private def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    +    val clazz = Utils.classForName(functionClassName)
    +    (input: Seq[Expression]) => makeFunctionExpression(name, clazz, input)
    +  }
    +
    +  /**
    +   * Constructs a [[FunctionBuilder]] based on the provided class that represents a function.
    --- End diff --
    
    this method returns Expression, not FunctionBuilder


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80575 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80575/testReport)** for PR 18700 at commit [`a65607c`](https://github.com/apache/spark/commit/a65607c2e31762b7f17c7ea64248c504557350d8).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80992 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80992/testReport)** for PR 18700 at commit [`57607b5`](https://github.com/apache/spark/commit/57607b5e175894b488e87752e41ff60cc2700045).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r132961262
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -1096,8 +1099,42 @@ class SessionCatalog(
        * This performs reflection to decide what type of [[Expression]] to return in the builder.
        */
       protected def makeFunctionBuilder(name: String, functionClassName: String): FunctionBuilder = {
    -    // TODO: at least support UDAFs here
    -    throw new UnsupportedOperationException("Use sqlContext.udf.register(...) instead.")
    +    makeFunctionBuilder(name, Utils.classForName(functionClassName))
    +  }
    +
    +  /**
    +   * Construct a [[FunctionBuilder]] based on the provided class that represents a function.
    +   */
    +  private def makeFunctionBuilder(name: String, clazz: Class[_]): FunctionBuilder = {
    +    // When we instantiate ScalaUDAF class, we may throw exception if the input
    +    // expressions don't satisfy the UDAF, such as type mismatch, input number
    +    // mismatch, etc. Here we catch the exception and throw AnalysisException instead.
    +    (children: Seq[Expression]) => {
    +      try {
    +        val clsForUDAF =
    +          Utils.classForName("org.apache.spark.sql.expressions.UserDefinedAggregateFunction")
    --- End diff --
    
    shall we move the UDAF interface to catalyst?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80992/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #79829 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/79829/testReport)** for PR 18700 at commit [`4028155`](https://github.com/apache/spark/commit/40281551f461ecb5f3c1720d1ed45d885e5353a6).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `      throw new AnalysisException(s\"Can not load class '$className' when registering \" +`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    The latest `build #80997` passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80974 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80974/testReport)** for PR 18700 at commit [`d3fbdc5`](https://github.com/apache/spark/commit/d3fbdc5d0f67a422395b76bd1035fe7fb95f7de1).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80933 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80933/testReport)** for PR 18700 at commit [`7251be9`](https://github.com/apache/spark/commit/7251be9386656e590c86c75be466779bdd2e076d).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Thanks! Merging to master.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Build finished. Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80997 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80997/testReport)** for PR 18700 at commit [`50224a7`](https://github.com/apache/spark/commit/50224a7d2bf7db7f6b042681cb658e60967261b1).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80996 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80996/testReport)** for PR 18700 at commit [`aff8f9e`](https://github.com/apache/spark/commit/aff8f9efd490296005607310c0faaf7970cc352d).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80553/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/79829/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80997/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #18700: [SPARK-21499] [SQL] Support creating persistent f...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18700#discussion_r134531594
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala ---
    @@ -126,6 +130,13 @@ class SessionCatalog(
         if (conf.caseSensitiveAnalysis) name else name.toLowerCase(Locale.ROOT)
       }
     
    +  /**
    +   * Checks whether the Hive metastore is being used
    +   */
    +  private def isUsingHiveMetastore: Boolean = {
    --- End diff --
    
    do we still need this?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    **[Test build #80992 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/80992/testReport)** for PR 18700 at commit [`57607b5`](https://github.com/apache/spark/commit/57607b5e175894b488e87752e41ff60cc2700045).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    LGTM


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org

[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80924/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Merged build finished. Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #18700: [SPARK-21499] [SQL] Support creating persistent function...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18700
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/80575/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org