GitHub user gatorsmile opened a pull request: https://github.com/apache/spark/pull/17615
[SPARK-20303][SQL] Rename createTempFunction to registerFunction ### What changes were proposed in this pull request? Session catalog API `createTempFunction` is being used by Hive build-in functions, persistent functions, and temporary functions. Thus, the name is confusing. This PR is to rename it by `registerFunction`. Also we can move construction of `FunctionBuilder` and `ExpressionInfo` into the new `registerFunction`, instead of duplicating the logics everywhere. In the next PRs, the remaining Function-related APIs also need cleanups. ### How was this patch tested? Existing test cases. You can merge this pull request into a Git repository by running: $ git pull https://github.com/gatorsmile/spark cleanupCreateTempFunction Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/17615.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 #17615 ---- commit cc164813d7d775f233f62901e09885fc322bc150 Author: Xiao Li <gatorsm...@gmail.com> Date: 2017-04-12T05:20:07Z fix. commit e876af1882a53fcd5569594e9ea486dba66850b4 Author: Xiao Li <gatorsm...@gmail.com> Date: 2017-04-12T05:29:02Z fix. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org