Skip to content

Commit

Permalink
fix: revert addition of count_distinct aggregate function (#311)
Browse files Browse the repository at this point in the history
The behavior of count_distinct can already be accomplished with the regular
count function using the distinct input property on the binding.

Co-authored-by: Jacques Nadeau <[email protected]>
  • Loading branch information
jvanstraten and jacques-n authored Sep 5, 2022
1 parent 683faaa commit 90d7c0d
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ scalar_functions:
- name: y
value: fp64
return: fp64
-
-
name: "abs"
description: >
Calculate the absolute value of the argument.
Expand Down Expand Up @@ -1085,7 +1085,7 @@ aggregate_functions:
return: fp64?
- name: "corr"
description: >
Calculates correlation of two set of values.
Calculates correlation of two set of values.
If there is no input, null is returned.
impls:
- args:
Expand Down Expand Up @@ -1134,7 +1134,7 @@ aggregate_functions:
nullability: DECLARED_OUTPUT
return: fp64?
- name: "median"
description: >
description: >
Calculate the median for a set of values.
Returns null if applied to zero records. For the integer implementations,
Expand Down Expand Up @@ -1268,15 +1268,6 @@ aggregate_functions:
- value: fp64
nullability: DECLARED_OUTPUT
return: fp64?
- name: "count_distinct"
description: Count of unique values in a set of values.
impls:
- args:
- options: [SILENT, SATURATE, ERROR]
required: false
- value: any
nullability: DECLARED_OUTPUT
return: i64
window_functions:
- name: "row_number"
description: "the number of the current row within its partition."
Expand Down Expand Up @@ -1324,14 +1315,14 @@ window_functions:
- args:
- name: x
value: i32
nullability: DECLARED_OUTPUT
nullability: DECLARED_OUTPUT
decomposable: NONE
return: i32?
window_type: PARTITION
- args:
- name: x
value: i64
nullability: DECLARED_OUTPUT
nullability: DECLARED_OUTPUT
decomposable: NONE
return: i64?
window_type: PARTITION

0 comments on commit 90d7c0d

Please sign in to comment.