Function year()
extracts the year of a time value and returns that integer.
Arguments:
- Time <datetime | timestamp | string>
Returns:
- Year <number>
Common Usage
Example: Calculate year of each row of an alias
uncollect ["2023-04-30 22:30:35", "2020-01-15 09:03:16"] as a
return year(a)
2023
2020