Skip to content

Support skewness(x) in Aggregation function #12249

Description

@Weijun-H

Is your feature request related to a problem or challenge?

Returns the skewness value calculated from values of a group.

Describe the solution you'd like

D SELECT skewness(col) FROM VALUES (-10), (-20), (100), (1000), (1000) AS tab(col);
┌────────────────────┐
│   skewness(col)    │
│       double       │
├────────────────────┤
│ 0.5745116147533554 │
└────────────────────┘

Describe alternatives you've considered

No response

Additional context

https://docs.databricks.com/en/sql/language-manual/functions/skewness.html
https://duckdb.org/docs/sql/functions/aggregates#skewnessx

Activity

  1. dharanad commented on Aug 30, 2024

    @dharanad
    Contributor

    take

  2. alamb commented on Sep 9, 2024

    @alamb
    Contributor

    Given #12357 we may want to move this function to some other repo rather than the core

  3. dharanad commented on Sep 11, 2024

    @dharanad
    Contributor

    thanks for the update @alamb

  4. alamb commented on Sep 16, 2024

    @alamb
    Contributor

    Suggestion: #12254 (comment)

  5. alamb commented on Sep 25, 2024

    @alamb
    Contributor

    We are going to implement these in a different repository so closing this ticket to avoid confusion: #12254 (comment)

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

Metadata

Metadata

Assignees

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