pyflink.table.expression.Expression.floor#
- Expression.floor(time_interval_unit: Optional[pyflink.table.expression.TimeIntervalUnit] = None) pyflink.table.expression.Expression [source]#
If time_interval_unit is specified, it rounds down a time point to the given unit, e.g. lit(“12:44:31”).to_date.floor(TimeIntervalUnit.MINUTE) leads to 12:44:00. Otherwise, it calculates the largest integer less than or equal to a given number.
New in version 1.12.0.