File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ scalar_functions:
463463 value : date
464464 - name : y
465465 value : interval_day<P>
466- return : date
466+ return : precision_timestamp<P>
467467 -
468468 name : " lte"
469469 description : less than or equal to
Original file line number Diff line number Diff line change 22### SUBSTRAIT_INCLUDE: '/extensions/functions_datetime.yaml'
33
44# timestamps: examples using the timestamp type
5- subtract('2016-12-31T13:30:15'::ts, 'P5D'::iday) = '2016-12-26T13:30:15'::ts
5+ subtract('2016-12-31T13:30:15'::ts, 'P5D'::iday<0> ) = '2016-12-26T13:30:15'::ts
66subtract('2016-12-01T13:30:15'::ts, 'P5Y'::iyear) = '2011-12-01T13:30:15'::ts
7- subtract('2016-12-01T13:30:15'::ts, 'PT5H'::iday) = '2016-12-01T08:30:15'::ts
7+ subtract('2016-12-01T13:30:15'::ts, 'PT5H'::iday<0> ) = '2016-12-01T08:30:15'::ts
88
99# date: examples using the date type
10- subtract('2020-12-31'::date, 'P5D'::iday) = '2020-12-26 '::date
10+ subtract('2020-12-31'::date, 'P5D'::iday<0> ) = '2020-12-26T00:00:00 '::pts?<0>
1111subtract('2020-12-31'::date, 'P5Y'::iyear) = '2015-12-31'::date
1212subtract('2020-12-31'::date, 'P5M'::iyear) = '2020-07-31'::date
1313
1414# null_input: examples with null args or return
15- subtract(null::date?, 'P5D'::iday) = null::date?
15+ subtract(null::date?, 'P5D'::iday<0> ) = null::pts?<0>
You can’t perform that action at this time.
0 commit comments