GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/6710
[SPARK-7886] Add built-in expressions to FunctionRegistry.
This patch switches to using FunctionRegistry for built-in expressions.
It is based on #6463, but with some work to simplified it, and added unit
tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark udf-registry
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/6710.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 #6710
----
commit 8616924ebb90eaf5e88a6a843dc99744b3dbc2b8
Author: Santiago M. Mola <[email protected]>
Date: 2015-05-28T17:42:59Z
[SPARK-7886] Add built-in expressions to FunctionRegistry.
- ExpressionBuilders is provided with helpers to create a function builder
for each Expression.
- Built-in functions removed from SqlParser when possible. Added to
FunctionRegistry.
TO DO:
- Decide between the reflection and macro implementations of the
expression builder helpers.
- Fix Substring (whose constructor is not well suited for the helper).
- Apply changes to Hive.
commit 2a2a149672589e303f6a8dbc1ef295a7c2541825
Author: Reynold Xin <[email protected]>
Date: 2015-06-08T20:18:12Z
Merge pull request #6463 from smola/SPARK-7886
[SPARK-7886][SQL] Add built-in expressions to FunctionRegistry.
commit 77b46f18c9a563f0673ddf097bf1e08c7be0ca1d
Author: Reynold Xin <[email protected]>
Date: 2015-06-08T23:23:22Z
Simplified the code.
----
---
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]