GitHub user twalthr opened a pull request:
https://github.com/apache/flink/pull/1679
[FLINK-3226] Translation of scalar function substring()
This PR implements the scalar function `substring()` for the Table API on
Calcite. Additionally, it already contains preparations for more built-in SQL
functions. I implemented test utils for scalar functions `ScalarFunctionsTest`
and added a similar concept to Calcites `CallImplementor` named `CallGenerator`.
For now, I kept the `Substring` expression node, but I would like to remove
it and use a generic `Call` expression. I think we don't need a case class for
every operator. What do you think?
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/twalthr/flink AdvancedOperators
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/1679.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 #1679
----
commit 0106e4723f38ab533bf15c909b98299e27530b2a
Author: twalthr <[email protected]>
Date: 2016-02-20T20:41:44Z
[FLINK-3226] Translation of scalar function substring()
----
---
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.
---