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

feat: add min/max for datetime types #584

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions extensions/functions_datetime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -688,3 +688,95 @@ scalar_functions:
- name: origin
value: time
return: time

aggregate_functions:
- name: "min"
description: Min a set of values.
impls:
- args:
- name: x
value: date
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: date?
return: date?
- args:
- name: x
value: time
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: time?
return: time?
- args:
- name: x
value: timestamp
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: timestamp?
return: timestamp?
- args:
- name: x
value: timestamp_tz
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: timestamp_tz?
return: timestamp_tz?
- args:
- name: x
value: interval_day
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: interval_day?
return: interval_day?
- args:
- name: x
value: interval_year
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: interval_year?
return: interval_year?
- name: "max"
description: Max a set of values.
impls:
- args:
- name: x
value: date
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: date?
return: date?
- args:
- name: x
value: time
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: time?
return: time?
- args:
- name: x
value: timestamp
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: timestamp?
return: timestamp?
- args:
- name: x
value: timestamp_tz
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: timestamp_tz?
return: timestamp_tz?
- args:
- name: x
value: interval_day
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: interval_day?
return: interval_day?
- args:
- name: x
value: interval_year
nullability: DECLARED_OUTPUT
decomposable: MANY
intermediate: interval_year?
return: interval_year?
Loading