+
K
Supported in: Batch, Streaming
Extracts a part of a date like year or day of week.
Expression categories: Datetime
Output type: Integer
Argument values:
DAY_OF_MONTH
Output: 10
DAY_OF_WEEK
Output: 4
DAY_OF_YEAR
Output: 41
MONTH
Output: 2
QUARTER
Output: 1
Description: Weeks of year start on Monday and end on Sunday Argument values:
WEEK_OF_YEAR
Description: Weeks of year respect leap weeks as defined by ISO 8601 Argument values:
Output: 53
YEAR
Output: 2022
date