GitHub user kaspersorensen opened a pull request:
https://github.com/apache/metamodel/pull/55
Metamodel 192/datatype conversion functions
__Do not merge yet__
This is my first attempt at implementing METAMODEL-192, which thereby is
also the first time we make pluggable ScalarFunctions available. I wanted to
share it early on since I think some people will find the approach interesting
( @ardlema ?) as inspiration for similar scalar functions (SUBSTRING etc.) ...
Please let me know if you think the approach is good or not.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kaspersorensen/metamodel
METAMODEL-192/datatype-conversion-functions
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/metamodel/pull/55.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 #55
----
commit 94d08404647e53352a07ac37692000aa319a06b4
Author: Kasper Sørensen <[email protected]>
Date: 2015-10-03T20:15:50Z
METAMODEL-192: Updated ScalarFunction interface and added ToXx functions
commit 018a666df5e9dc21e7db9c3ca7f0f041c9986570
Author: Kasper Sørensen <[email protected]>
Date: 2015-10-03T20:27:17Z
Cleaned up the function inheritance patterns, using @Override etc.
commit 3cb4cd8d7c475533f92292baee55e463adca2a57
Author: Kasper Sørensen <[email protected]>
Date: 2015-10-03T22:09:11Z
METAMODEL-192: First impl for client-side eval. JDBC not covered yet.
----
---
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.
---