Skip to content

Commit

Permalink
feat: add variance function (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha authored Jul 28, 2022
1 parent de64a3c commit b6c3772
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,23 @@ aggregate_functions:
- value: fp64
nullability: DECLARED_OUTPUT
return: fp64?
- name: "variance"
description: Calculates variance for a set of values.
impls:
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- value: fp32
nullability: DECLARED_OUTPUT
return: fp32?
- args:
- name: rounding
options: [ TIE_TO_EVEN, TIE_AWAY_FROM_ZERO, TRUNCATE, CEILING, FLOOR ]
required: false
- value: fp64
nullability: DECLARED_OUTPUT
return: fp64?
window_functions:
- name: "row_number"
description: "the number of the current row within its partition."
Expand Down

0 comments on commit b6c3772

Please sign in to comment.