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

refactor!: move ordering-related code to order_by_util.rs && fix an issue with decimals #388

Merged
merged 2 commits into from
Nov 24, 2024

Conversation

iajoiner
Copy link
Contributor

@iajoiner iajoiner commented Nov 21, 2024

Please be sure to look over the pull request guidelines here: https://github.com/spaceandtimelabs/sxt-proof-of-sql/blob/main/CONTRIBUTING.md#submit-pr.

Please go through the following checklist

Rationale for this change

OrderByExec (to be added), GroupByExec and SortMergeJoinExec (to be added) all depend on correct sorting of rows. Hence we move them together. Meanwhile a bug was found in compare_indexes_by_owned_columns_with_direction causing negative decimals to be considered larger than positive ones. Hence we fixed it and modified a test to check for that.

What changes are included in this PR?

  • move ordering-related manipulations from group_by_util.rs and owned_column.rs to order_by_util.rs
  • fix the bug mentioned above.

Are these changes tested?

Yes.

@iajoiner iajoiner force-pushed the refactor/order-by-utils branch from 02b9700 to 454f77e Compare November 21, 2024 15:27
@iajoiner iajoiner force-pushed the refactor/order-by-utils branch from 454f77e to 69c17eb Compare November 21, 2024 15:33
@iajoiner iajoiner marked this pull request as draft November 22, 2024 22:06
@iajoiner iajoiner requested review from JayWhite2357 and removed request for JayWhite2357 November 22, 2024 22:06
@iajoiner iajoiner marked this pull request as ready for review November 24, 2024 02:23
@iajoiner iajoiner force-pushed the refactor/order-by-utils branch from 69c17eb to d7caa22 Compare November 24, 2024 02:24
JayWhite2357
JayWhite2357 previously approved these changes Nov 24, 2024
@iajoiner iajoiner force-pushed the refactor/order-by-utils branch from 7b3443e to 3c96dd1 Compare November 24, 2024 03:19
@iajoiner iajoiner enabled auto-merge November 24, 2024 03:19
@iajoiner iajoiner merged commit c0a2f98 into main Nov 24, 2024
12 checks passed
Copy link

🎉 This PR is included in version 0.50.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@iajoiner iajoiner deleted the refactor/order-by-utils branch November 26, 2024 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants