timsaucer commented on PR #17289:
URL: https://github.com/apache/datafusion/pull/17289#issuecomment-3242283062
> Tim, would we be able to implement lambda functions on top of this PR or
more work needed?
>
> Something like:
>
> ```sql
> SELECT array_sort(array('Hello', 'World'),
> (p1, p2) -> CASE WHEN p1 = p2 THEN 0
> WHEN reverse(p1) < reverse(p2) THEN -1
> ELSE 1 END);
> ```
>
>
https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-lambda-functions
I hadn't considered that, but it sounds like an excellent idea to support.
I'm going to think some more about it. I definitely think this would be a
strong supporting argument for doing this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]