Skip to content

Commit

Permalink
fix: move back into functions_arithmetic to keep url the same
Browse files Browse the repository at this point in the history
  • Loading branch information
Blizzara committed Jun 27, 2024
1 parent 903d75f commit fc3fa78
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
44 changes: 0 additions & 44 deletions extensions/functions_aggregate_generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,47 +35,3 @@ aggregate_functions:
value: any
nullability: DECLARED_OUTPUT
return: any?
- name: "first_value"
description: >-
First value from a group of values.
The definition of "first" depends on ordering. If ordering is not defined, the returned value may be chosen
non-deterministically.
If `ignore_nulls` is set to `TRUE`, the function will look for the first non-null value.
If set to `FALSE`, the function will return the first value it sees, even if null.
If all values are null or there are no values, returns null.
impls:
- args:
- name: x
value: any1
options:
ignore_nulls:
values: [ "TRUE", "FALSE" ]
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: any1?
return: any1?
- name: "last_value"
description: >-
Last value from a group of values.
The definition of "last" depends on ordering. If ordering is not defined, the returned value may be chosen
non-deterministically.
If `ignore_nulls` is set to `TRUE`, the function will look for the first non-null value.
If set to `FALSE`, the function will return the first value it sees, even if null.
If all values are null or there are no values, returns null.
impls:
- args:
- name: x
value: any1
options:
ignore_nulls:
values: [ "TRUE", "FALSE" ]
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: any1?
return: any1?
44 changes: 44 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,50 @@ aggregate_functions:
nullability: DECLARED_OUTPUT
ordered: true
return: LIST?<any>
- name: "first_value"
description: >-
First value from a group of values.
The definition of "first" depends on ordering. If ordering is not defined, the returned value may be chosen
non-deterministically.
If `ignore_nulls` is set to `TRUE`, the function will look for the first non-null value.
If set to `FALSE`, the function will return the first value it sees, even if null.
If all values are null or there are no values, returns null.
impls:
- args:
- name: x
value: any1
options:
ignore_nulls:
values: [ "TRUE", "FALSE" ]
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: any1?
return: any1?
- name: "last_value"
description: >-
Last value from a group of values.
The definition of "last" depends on ordering. If ordering is not defined, the returned value may be chosen
non-deterministically.
If `ignore_nulls` is set to `TRUE`, the function will look for the first non-null value.
If set to `FALSE`, the function will return the first value it sees, even if null.
If all values are null or there are no values, returns null.
impls:
- args:
- name: x
value: any1
options:
ignore_nulls:
values: [ "TRUE", "FALSE" ]
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: any1?
return: any1?

window_functions:
- name: "row_number"
Expand Down

0 comments on commit fc3fa78

Please sign in to comment.