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

SortedFirst / SortedLast aggregations with sort direction #821

Open
devinrsmith opened this issue Jul 6, 2021 · 0 comments
Open

SortedFirst / SortedLast aggregations with sort direction #821

devinrsmith opened this issue Jul 6, 2021 · 0 comments
Assignees
Labels
feature request New feature or request
Milestone

Comments

@devinrsmith
Copy link
Member

SortedFirst and SortedLast assume ascending sorted columns. Arguably, any column should be able be able to specify a sort direction.

We can extend the existing tuple type and code generated tuples to introduce a new Comparable-like interface:

interface SortedComparable<T> {
  int compareTo(T other, boolean[] order);
}
@devinrsmith devinrsmith added the feature request New feature or request label Jul 6, 2021
@devinrsmith devinrsmith added this to the Backlog milestone Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants