ParseToDate Expression¶
ParseToDate
is a spark-sql-Expression-RuntimeReplaceable.md[RuntimeReplaceable] expression that <
// DEMO to_date(e: Column): Column
// DEMO to_date(e: Column, fmt: String): Column
As a RuntimeReplaceable
expression, ParseToDate
is replaced by Logical Query Optimizer with the <
-
Cast(left, DateType)
forto_date(e: Column): Column
function -
Cast(Cast(UnixTimestamp(left, format), TimestampType), DateType)
forto_date(e: Column, fmt: String): Column
function
// FIXME DEMO Conversion to `Cast(left, DateType)`
// FIXME DEMO Conversion to `Cast(Cast(UnixTimestamp(left, format), TimestampType), DateType)`
=== [[creating-instance]] Creating ParseToDate Instance
ParseToDate
takes the following when created:
- [[left]] Left Expression.md[expression]
- [[format]]
format
Expression.md[expression] - [[child]] Child Expression.md[expression]
Last update: 2020-10-21