Skip to content

Commit d6c402a

Browse files
authored
docs: list date/time expressions added in apache#4417 (apache#4443)
1 parent f383a0c commit d6c402a

2 files changed

Lines changed: 54 additions & 45 deletions

File tree

docs/source/contributor-guide/spark_expressions_support.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214

215215
### datetime_funcs
216216

217-
- [ ] add_months
217+
- [x] add_months
218218
- [x] convert_timezone
219219
- [ ] curdate
220220
- [ ] current_date
@@ -250,30 +250,30 @@
250250
- [ ] make_dt_interval
251251
- [ ] make_interval
252252
- [ ] make_time
253-
- [ ] make_timestamp
253+
- [x] make_timestamp
254254
- [ ] make_timestamp_ltz
255255
- [ ] make_timestamp_ntz
256256
- [ ] make_ym_interval
257257
- [x] minute
258258
- [x] month
259259
- [ ] monthname
260-
- [ ] months_between
260+
- [x] months_between
261261
- [x] next_day
262262
- [ ] now
263263
- [x] quarter
264264
- [x] second
265265
- [ ] session_window
266266
- [ ] time_diff
267267
- [ ] time_trunc
268-
- [ ] timestamp_micros
269-
- [ ] timestamp_millis
268+
- [x] timestamp_micros
269+
- [x] timestamp_millis
270270
- [x] timestamp_seconds
271271
- [ ] to_date
272272
- [ ] to_time
273273
- [ ] to_timestamp
274274
- [ ] to_timestamp_ltz
275275
- [ ] to_timestamp_ntz
276-
- [ ] to_unix_timestamp
276+
- [x] to_unix_timestamp
277277
- [x] to_utc_timestamp
278278
- Spark 3.4.3 (audited 2026-05-12): identical to 3.5.8.
279279
- Spark 3.5.8 (audited 2026-05-12): baseline.
@@ -286,9 +286,9 @@
286286
- [ ] try_to_time
287287
- [ ] try_to_timestamp
288288
- [x] unix_date
289-
- [ ] unix_micros
290-
- [ ] unix_millis
291-
- [ ] unix_seconds
289+
- [x] unix_micros
290+
- [x] unix_millis
291+
- [x] unix_seconds
292292
- [x] unix_timestamp
293293
- [x] weekday
294294
- [x] weekofyear

docs/source/user-guide/latest/expressions.md

Lines changed: 45 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -99,42 +99,51 @@ of expressions that be disabled.
9999

100100
## Date/Time Functions
101101

102-
| Expression | SQL |
103-
| ---------------- | ---------------------------- |
104-
| ConvertTimezone | `convert_timezone` |
105-
| CurrentTimeZone | `current_timezone` |
106-
| DateAdd | `date_add` |
107-
| DateDiff | `datediff` |
108-
| DateFormat | `date_format` |
109-
| DateFromUnixDate | `date_from_unix_date` |
110-
| DateSub | `date_sub` |
111-
| DatePart | `date_part(field, source)` |
112-
| Days | `days` |
113-
| Extract | `extract(field FROM source)` |
114-
| FromUnixTime | `from_unixtime` |
115-
| Hour | `hour` |
116-
| LastDay | `last_day` |
117-
| LocalTimestamp | `localtimestamp` |
118-
| MakeDate | `make_date` |
119-
| MakeTime | `make_time` |
120-
| Minute | `minute` |
121-
| NextDay | `next_day` |
122-
| Second | `second` |
123-
| TimestampSeconds | `timestamp_seconds` |
124-
| TruncDate | `trunc` |
125-
| TruncTimestamp | `date_trunc` |
126-
| UnixDate | `unix_date` |
127-
| UnixTimestamp | `unix_timestamp` |
128-
| Year | `year` |
129-
| Month | `month` |
130-
| DayOfMonth | `day`/`dayofmonth` |
131-
| DayOfWeek | `dayofweek` |
132-
| WeekDay | `weekday` |
133-
| DayOfYear | `dayofyear` |
134-
| WeekOfYear | `weekofyear` |
135-
| Quarter | `quarter` |
136-
| ToTime | `to_time` |
137-
| TryToTime | `try_to_time` |
102+
| Expression | SQL |
103+
| ----------------- | ---------------------------- |
104+
| AddMonths | `add_months` |
105+
| ConvertTimezone | `convert_timezone` |
106+
| CurrentTimeZone | `current_timezone` |
107+
| DateAdd | `date_add` |
108+
| DateDiff | `datediff` |
109+
| DateFormat | `date_format` |
110+
| DateFromUnixDate | `date_from_unix_date` |
111+
| DateSub | `date_sub` |
112+
| DatePart | `date_part(field, source)` |
113+
| Days | `days` |
114+
| Extract | `extract(field FROM source)` |
115+
| FromUnixTime | `from_unixtime` |
116+
| Hour | `hour` |
117+
| LastDay | `last_day` |
118+
| LocalTimestamp | `localtimestamp` |
119+
| MakeDate | `make_date` |
120+
| MakeTime | `make_time` |
121+
| MakeTimestamp | `make_timestamp` |
122+
| MicrosToTimestamp | `timestamp_micros` |
123+
| MillisToTimestamp | `timestamp_millis` |
124+
| Minute | `minute` |
125+
| MonthsBetween | `months_between` |
126+
| NextDay | `next_day` |
127+
| Second | `second` |
128+
| TimestampSeconds | `timestamp_seconds` |
129+
| ToUnixTimestamp | `to_unix_timestamp` |
130+
| TruncDate | `trunc` |
131+
| TruncTimestamp | `date_trunc` |
132+
| UnixDate | `unix_date` |
133+
| UnixMicros | `unix_micros` |
134+
| UnixMillis | `unix_millis` |
135+
| UnixSeconds | `unix_seconds` |
136+
| UnixTimestamp | `unix_timestamp` |
137+
| Year | `year` |
138+
| Month | `month` |
139+
| DayOfMonth | `day`/`dayofmonth` |
140+
| DayOfWeek | `dayofweek` |
141+
| WeekDay | `weekday` |
142+
| DayOfYear | `dayofyear` |
143+
| WeekOfYear | `weekofyear` |
144+
| Quarter | `quarter` |
145+
| ToTime | `to_time` |
146+
| TryToTime | `try_to_time` |
138147

139148
## Math Expressions
140149

0 commit comments

Comments
 (0)