File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
datafusion/functions-aggregate/src Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,7 @@ impl AggregateUDFImpl for Max {
265265 | Binary
266266 | LargeBinary
267267 | BinaryView
268+ | Duration ( _)
268269 )
269270 }
270271
@@ -319,6 +320,18 @@ impl AggregateUDFImpl for Max {
319320 Timestamp ( Nanosecond , _) => {
320321 primitive_max_accumulator ! ( data_type, i64 , TimestampNanosecondType )
321322 }
323+ Duration ( Second ) => {
324+ primitive_max_accumulator ! ( data_type, i64 , DurationSecondType )
325+ }
326+ Duration ( Millisecond ) => {
327+ primitive_max_accumulator ! ( data_type, i64 , DurationMillisecondType )
328+ }
329+ Duration ( Microsecond ) => {
330+ primitive_max_accumulator ! ( data_type, i64 , DurationMicrosecondType )
331+ }
332+ Duration ( Nanosecond ) => {
333+ primitive_max_accumulator ! ( data_type, i64 , DurationNanosecondType )
334+ }
322335 Decimal128 ( _, _) => {
323336 primitive_max_accumulator ! ( data_type, i128 , Decimal128Type )
324337 }
You can’t perform that action at this time.
0 commit comments