Skip to content

Convert Option<Vec<sort expression>> to Vec<sort expression> #12195

Closed

Description

@findepi

Consider AggregateFunction.order_by field -- it is Option<Vec< /*sort expr*/ >>
None means "no sorting" but this can be modeled as Some( vec![] ).
Empty collection perfectly describes lack of sorting, so no need to wrap if with optional value.

Remove Option and keep just Vec.

This can be applied to

  • AggregateFunction.order_by
  • ExprFuncBuilder.order_by
  • ...

based on #12178 (comment) cc @crepererum

Activity

  1. findepi commented on Aug 27, 2024

    @findepi
    MemberAuthor

    take

  2. findepi commented on Aug 27, 2024

    @findepi
    MemberAuthor

    plan to work on this after #12193, as the two will conflict.

  3. changed the title [-]Make `AggregateFunction.order_by` non-Option field[/-] [+]Convert `Option<Vec<sort expression>>` to `Vec<sort expression>`[/+] on Aug 27, 2024
  4. removed their assignment
    on Jun 25, 2025
  5. ViggoC commented on Jun 29, 2025

    @ViggoC
    Contributor

    Hi @findepi, can I take it if you do not work on it anymore?

  6. findepi commented on Jun 29, 2025

    @findepi
    MemberAuthor

    sure, go for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions