ankitsultana opened a new issue, #14650: URL: https://github.com/apache/pinot/issues/14650
It would be great if Pinot supported Lambda expressions. For a reference point, PrestoSQL has [really rich lambda expression](https://prestodb.io/docs/current/functions/lambda.html) support, where you can even pass in custom functions for sorting an array. Example expressions supported in Presto: ``` SELECT ARRAY_SORT( filter(someArrayExpression), state -> json_extract_scalar(state, '$.source') = 'something' ), (st1, st2) -> IF( JSON_EXTRACT_SCALAR(st1, '$.timestamp') < JSON_EXTRACT_SCALAR(st2, '$.timestamp'), -1, IF( JSON_EXTRACT_SCALAR(st1, '$.timestamp') = JSON_EXTRACT_SCALAR(st2, '$.timestamp'), 0, 1 ) ) ) ``` Calcite has support for Lambda expressions but I haven't taken a deeper look into 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]
