I think we can add support for lambda expressions in CTE syntax later, for
> example:
> ```
> with f as (x, y) -> x + y
> select f(c1, c2) from t;
> ```
>
> Another thing, I provided the wrong PR link, and the correct one should be:
> [1] https://github.com/apache/calcite/pull
Hi Julian,
Thanks for your explanation.
I think we can add support for lambda expressions in CTE syntax later, for
example:
```
with f as (x, y) -> x + y
select f(c1, c2) from t;
```
Another thing, I provided the wrong PR link, and the correct one should be:
[1] https://github.com/apache/calc
ogramming language and a real query language.
Julian
> On Nov 13, 2023, at 4:11 AM, Hongyu Guo wrote:
>
> Hi devs,
>
> I have opened a PR regarding lambda expressions, Calcite will support
> lambda expressions like `(a, b) - > a+ b` in function parameters if this PR
>
Hi devs,
I have opened a PR regarding lambda expressions, Calcite will support
lambda expressions like `(a, b) - > a+ b` in function parameters if this PR
is merged.
This PR includes the following:
- Parse, validation, SqlToRel and RelToSql for lambda expressions.
- Execution of higher-or
s anyone know if Calcite supports parsing lambda expressions? (Or can
> be
> > extended easily to do this)
> >
> > I.e. something similar to Teradata Presto:
> > https://teradata.github.io/presto/docs/0.167-t/functions/lambda.html
> >
>
Not yet.
But there is a JIRA:
https://issues.apache.org/jira/browse/CALCITE-3679
On 2020/06/11 14:55:19, Tim Fox wrote:
> Hi folks,
>
> Does anyone know if Calcite supports parsing lambda expressions? (Or can be
> extended easily to do this)
>
> I.e. something similar
Hi folks,
Does anyone know if Calcite supports parsing lambda expressions? (Or can be
extended easily to do this)
I.e. something similar to Teradata Presto:
https://teradata.github.io/presto/docs/0.167-t/functions/lambda.html