GitHub user andrewor14 opened a pull request:

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

    [SPARK-14013][SQL] Proper temp function support in catalog

    ## What changes were proposed in this pull request?
    
    Session catalog was added in #11750. However, it doesn't really support 
temporary functions properly; right now we only store the metadata in the form 
of `CatalogFunction`, but this doesn't make sense for temporary functions 
because there is no class name.
    
    This patch moves the `FunctionRegistry` into the `SessionCatalog`. With 
this, the user can call `catalog.createTempFunction` and 
`catalog.lookupFunction` to use the function they registered previously. This 
is currently still dead code, however.
    
    ## How was this patch tested?
    
    `SessionCatalogSuite`.

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

    $ git pull https://github.com/andrewor14/spark temp-functions

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

    https://github.com/apache/spark/pull/11972.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 #11972
    
----
commit aace47cca0577890d5bc51869533425e250fcc6d
Author: Andrew Or <[email protected]>
Date:   2016-03-25T22:59:55Z

    Pass FunctionRegistry into SessionCatalog

commit 238d3921e87f4a01f2335efbd1d178c612b3df4c
Author: Andrew Or <[email protected]>
Date:   2016-03-25T23:56:28Z

    Fix tests

----


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