make_interval
function
Applies to: Databricks SQL Databricks Runtime
Creates an interval from years
, months
, weeks
, days
, hours
, mins
and secs
.
Warning
This constructor is deprecated since it generates an INTERVAL
which cannot be compared or operated upon. Please use make_ym_interval or make_dt_interval to produce intervals.
Arguments
years
: An integral number of years, positive or negativemonths
: An integral number of months, positive or negativeweeks
: An integral number of weeks, positive or negativedays
: An integral number of days, positive or negativehours
: An integral number of hours, positive or negativemins
: An integral number of minutes, positive or negativesecs
: A number of seconds with the fractional part in microsecond precision.