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

Function cast_string_to_date

src/expr/src/scalar/func/impls/string.rs:214–216  ·  view source on GitHub ↗
(a: &'a str)

Source from the content-addressed store, hash-verified

212 inverse = to_unary!(super::CastDateToString)
213)]
214fn cast_string_to_date<'a>(a: &'a str) -> Result<Date, EvalError> {
215 strconv::parse_date(a).err_into()
216}
217
218#[sqlfunc(
219 sqlname = "text_to_time",

Callers

nothing calls this directly

Calls 2

parse_dateFunction · 0.85
err_intoMethod · 0.80

Tested by

no test coverage detected