Skip to content

Commit 7ae40d3

Browse files
committed
Default interpolated interval end to NULL
1 parent 3b1e451 commit 7ae40d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/src/state_aggregate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ pub fn duration_in_range<'a>(
875875
state: String,
876876
aggregate: Option<StateAgg<'a>>,
877877
start: TimestampTz,
878-
interval: Option<crate::raw::Interval>,
878+
interval: default!(Option<crate::raw::Interval>, "NULL"),
879879
) -> crate::raw::Interval {
880880
if let Some(ref aggregate) = aggregate {
881881
aggregate.assert_str()
@@ -902,7 +902,7 @@ pub fn duration_in_range_int<'a>(
902902
state: i64,
903903
aggregate: Option<StateAgg<'a>>,
904904
start: TimestampTz,
905-
interval: Option<crate::raw::Interval>,
905+
interval: default!(Option<crate::raw::Interval>, "NULL"),
906906
) -> crate::raw::Interval {
907907
if let Some(ref aggregate) = aggregate {
908908
aggregate.assert_int()

0 commit comments

Comments
 (0)