MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / date_part_time_numeric

Function date_part_time_numeric

src/expr/src/scalar/func.rs:1947–1952  ·  view source on GitHub ↗
(units: &str, b: chrono::NaiveTime)

Source from the content-addressed store, hash-verified

1945 introduces_nulls = false
1946)]
1947fn date_part_time_numeric(units: &str, b: chrono::NaiveTime) -> Result<Numeric, EvalError> {
1948 match units.parse() {
1949 Ok(units) => Ok(date_part_time_inner::<Numeric>(units, b)?),
1950 Err(_) => Err(EvalError::UnknownUnits(units.into())),
1951 }
1952}
1953
1954#[sqlfunc(
1955 sqlname = "date_partt",

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected