Skip to content

Commit

Permalink
feat: add standard deviation functions (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha authored Jul 28, 2022
1 parent 34ec8f5 commit 1339534
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,23 @@ aggregate_functions:
decomposable: MANY
intermediate: fp64
return: fp64
- name: "std_dev"
description: Calculates standard-deviation 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
2 changes: 1 addition & 1 deletion text/simple_extensions_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ $defs:
items:
type: object
additionalProperties: false
required: [ intermediate, return ]
required: [ return ]
properties:
args:
$ref: "#/$defs/arguments"
Expand Down

0 comments on commit 1339534

Please sign in to comment.