Skip to content

Commit

Permalink
feat: add timestamp types to max/min function (#511)
Browse files Browse the repository at this point in the history
This PR add supports for timestamp types in max/min function.

This is currently supported in Acero and I believe most databases
support this as well.
  • Loading branch information
icexelloss committed Jun 27, 2023
1 parent 93a41d1 commit 6943400
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,20 @@ aggregate_functions:
decomposable: MANY
intermediate: fp64?
return: fp64?
- 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?
- name: "max"
description: Max a set of values.
impls:
Expand Down Expand Up @@ -1141,6 +1155,20 @@ aggregate_functions:
decomposable: MANY
intermediate: fp64?
return: fp64?
- 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?
- name: "product"
description: Product of a set of values. Returns 1 for empty input.
impls:
Expand Down

0 comments on commit 6943400

Please sign in to comment.