Skip to content

Add greatest(T,...) and least(T,...) SQL functions #6531

Description

@jimexist

Is your feature request related to a problem or challenge?

a challenge to implement greatest and least SQL functions

Describe the solution you'd like

Similar to the 2023 standard

Describe alternatives you've considered

using if else but it is very cumbersome

Additional context

No response

Activity

  1. changed the title [-]Add greatest and least SQL functions[/-] [+]Add `greatest(T,...)` and `least(T,...)` SQL functions[/+] on Jun 4, 2023
  2. waynexia commented on Nov 14, 2024

    @waynexia
    Member

    I'd like to continue this task if you don't mind. AFAIK there isn't an obvious blocker from the history of #6527 by @jimexist and #12474 by @rluvaton.

    For the topic in #12357 by @alamb, given greatest and least are both supported by PG and in the spec, adding them to the built-in function list makes sense to me.

  3. rluvaton commented on Nov 14, 2024

    @rluvaton
    Member

    I reopened my pr, can you please review my code there before I add tests?

  4. waynexia commented on Nov 14, 2024

    @waynexia
    Member

    Thank you @rluvaton, from the aspect of progress, I'd personally prefer to continue on #6527. But it's good that you are willing to drive your work. I've skimmed both #6527 and #12474 and both LGTM so far. Feel free to pin me after #12474 is ready for review.

  5. alamb commented on Nov 24, 2024

    @alamb
    Contributor

    Upate is that @rluvaton added support for greatest in

    Perhaps we should file a separate ticket for least 🤔

  6. rluvaton commented on Nov 24, 2024

    @rluvaton
    Member

    I'll try to add the least function in the coming week

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions