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

Support skewness(x) in Aggregation function #12249

Closed
Tracked by #12254
Weijun-H opened this issue Aug 30, 2024 · 6 comments · Fixed by datafusion-contrib/datafusion-functions-extra#6
Closed
Tracked by #12254
Assignees
Labels
enhancement New feature or request

Comments

@Weijun-H
Copy link
Member

Weijun-H commented Aug 30, 2024

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

@dharanad
Copy link
Contributor

take

@dharanad
Copy link
Contributor

dharanad commented Sep 2, 2024

@alamb
Copy link
Contributor

alamb commented Sep 9, 2024

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

@dharanad
Copy link
Contributor

thanks for the update @alamb

@alamb
Copy link
Contributor

alamb commented Sep 16, 2024

Suggestion: #12254 (comment)

@alamb
Copy link
Contributor

alamb commented Sep 25, 2024

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
Labels
enhancement New feature or request
Projects
None yet
3 participants