@@ -1565,13 +1565,13 @@ trait TruncInstant extends BinaryExpression with ImplicitCastInputTypes {
15651565 _FUNC_(date, fmt) - Returns `date` with the time portion of the day truncated to the unit specified by the format model `fmt`.
15661566 """ ,
15671567 arguments = """
1568- Arguments:
1569- * date - date value or valid date string
1570- * fmt - the format representing the unit to be truncated to
1571- - "YEAR", "YYYY", "YY" - truncate to the first date of the year that the `date` falls in
1572- - "QUARTER" - truncate to the first date of the quarter that the `date` falls in
1573- - "MONTH", "MM", "MON" - truncate to the first date of the month that the `date` falls in
1574- - "WEEK" - truncate to the Monday of the week that the `date` falls in
1568+ Arguments:
1569+ * date - date value or valid date string
1570+ * fmt - the format representing the unit to be truncated to
1571+ - "YEAR", "YYYY", "YY" - truncate to the first date of the year that the `date` falls in
1572+ - "QUARTER" - truncate to the first date of the quarter that the `date` falls in
1573+ - "MONTH", "MM", "MON" - truncate to the first date of the month that the `date` falls in
1574+ - "WEEK" - truncate to the Monday of the week that the `date` falls in
15751575 """ ,
15761576 examples = """
15771577 Examples:
@@ -1619,19 +1619,19 @@ case class TruncDate(date: Expression, format: Expression)
16191619 _FUNC_(fmt, ts) - Returns timestamp `ts` truncated to the unit specified by the format model `fmt`.
16201620 """ ,
16211621 arguments = """
1622- Arguments:
1623- * fmt - the format representing the unit to be truncated to
1624- - "YEAR", "YYYY", "YY" - truncate to the first date of the year that the `ts` falls in, the time part will be zero out
1625- - "QUARTER" - truncate to the first date of the quarter that the `ts` falls in, the time part will be zero out
1626- - "MONTH", "MM", "MON" - truncate to the first date of the month that the `ts` falls in, the time part will be zero out
1627- - "WEEK" - truncate to the Monday of the week that the `ts` falls in, the time part will be zero out
1628- - "DAY", "DD" - zero out the time part
1629- - "HOUR" - zero out the minute and second with fraction part
1630- - "MINUTE"- zero out the second with fraction part
1631- - "SECOND" - zero out the second fraction part
1632- - "MILLISECOND" - zero out the microseconds
1633- - "MICROSECOND" - everything remains
1634- * ts - datetime value or valid timestamp string
1622+ Arguments:
1623+ * fmt - the format representing the unit to be truncated to
1624+ - "YEAR", "YYYY", "YY" - truncate to the first date of the year that the `ts` falls in, the time part will be zero out
1625+ - "QUARTER" - truncate to the first date of the quarter that the `ts` falls in, the time part will be zero out
1626+ - "MONTH", "MM", "MON" - truncate to the first date of the month that the `ts` falls in, the time part will be zero out
1627+ - "WEEK" - truncate to the Monday of the week that the `ts` falls in, the time part will be zero out
1628+ - "DAY", "DD" - zero out the time part
1629+ - "HOUR" - zero out the minute and second with fraction part
1630+ - "MINUTE"- zero out the second with fraction part
1631+ - "SECOND" - zero out the second fraction part
1632+ - "MILLISECOND" - zero out the microseconds
1633+ - "MICROSECOND" - everything remains
1634+ * ts - datetime value or valid timestamp string
16351635 """ ,
16361636 examples = """
16371637 Examples:
0 commit comments