Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relational - sortBy accepts lambda function #2460

Merged
merged 11 commits into from
Nov 30, 2023

Conversation

abhishoya-gs
Copy link
Contributor

@abhishoya-gs abhishoya-gs commented Nov 14, 2023

What type of PR is this?

Improvement

What does this PR do / why is it needed ?

This PR adds support for lambda function inside sortBy function in a relational runtime. It's needed to support advanced use cases where path isn't useful. For example in cases where we want to pass in a variable, path fails on compilation and where we don't want to add qualified properties just for sorting by on it.

Which issue(s) this PR fixes:

Fixes #

Other notes for reviewers:

Snowflake https://docs.snowflake.com/en/sql-reference/constructs/order-by
Sybase https://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc36272.1570/html/commands/X14000.htm
DB2 https://www.ibm.com/docs/en/i/7.3?topic=statement-order-by-clause
H2 - tests

Does this PR introduce a user-facing change?

yes, users will be able to pass in a lambda functoin to sortBy

Copy link

github-actions bot commented Nov 14, 2023

Test Results

     703 files  ±  0       703 suites  ±0   1h 1m 13s ⏱️ -39s
11 652 tests +16  11 247 ✔️ +15  405 💤 +1  0 ±0 
14 550 runs  +16  14 061 ✔️ +15  489 💤 +1  0 ±0 

Results for commit 8d98311. ± Comparison against base commit 07e7129.

♻️ This comment has been updated with latest results.

@abhishoya-gs abhishoya-gs marked this pull request as ready for review November 23, 2023 06:49
@abhishoya-gs abhishoya-gs requested a review from a team as a code owner November 23, 2023 06:49
@gs-ssh16 gs-ssh16 merged commit 1a6b3b0 into finos:master Nov 30, 2023
4 checks passed
AFine-gs pushed a commit to AFine-gs/legend-engine that referenced this pull request Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants