You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Fix some broken / missing links in the DataFusion documentation (#19958)
## Which issue does this PR close?
## Rationale for this change
While reading the DataFusion documentation, I noticed a broken link
here:
<img width="787" height="885" alt="Screenshot 2026-01-23 at 9 34 43 AM"
src="https://github.com/user-attachments/assets/9013151d-599b-4973-968e-0033c6614643"
/>
## What changes are included in this PR?
Fix several broken and missing links (this was done by codex and I
reviewed the PR)
## Are these changes tested?
Yes, by CI
## Are there any user-facing changes?
Better docs. No functional changes intended
Copy file name to clipboardExpand all lines: datafusion/functions/src/datetime/to_unixtime.rs
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,12 @@ use std::any::Any;
27
27
28
28
#[user_doc(
29
29
doc_section(label = "Time and Date Functions"),
30
-
description = "Converts a value to seconds since the unix epoch (`1970-01-01T00:00:00`). Supports strings, dates, timestamps, integer, unsigned integer, and float types as input. Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00') if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided. Integers, unsigned integers, and floats are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00`).",
30
+
description = r#"
31
+
Converts a value to seconds since the unix epoch (`1970-01-01T00:00:00`).
32
+
Supports strings, dates, timestamps, integer, unsigned integer, and float types as input.
33
+
Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00')
34
+
if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided.
35
+
Integers, unsigned integers, and floats are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00`)."#,
Copy file name to clipboardExpand all lines: docs/source/user-guide/sql/scalar_functions.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2880,7 +2880,8 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo
2880
2880
2881
2881
Converts a value to a timestamp (`YYYY-MM-DDT00:00:00.000000<TZ>`) in the session time zone. Supports strings,
2882
2882
integer, unsigned integer, and double types as input. Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00')
2883
-
if no [Chrono formats] are provided. Strings that parse without a time zone are treated as if they are in the
2883
+
if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided.
2884
+
Strings that parse without a time zone are treated as if they are in the
2884
2885
session time zone, or UTC if no session time zone is set.
2885
2886
Integers, unsigned integers, and doubles are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00Z`).
2886
2887
@@ -2928,7 +2929,8 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo
2928
2929
2929
2930
Converts a value to a timestamp (`YYYY-MM-DDT00:00:00.000000<TZ>`) in the session time zone. Supports strings,
2930
2931
integer, unsigned integer, and double types as input. Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00')
2931
-
if no [Chrono formats] are provided. Strings that parse without a time zone are treated as if they are in the
2932
+
if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided.
2933
+
Strings that parse without a time zone are treated as if they are in the
2932
2934
session time zone, or UTC if no session time zone is set.
2933
2935
Integers, unsigned integers, and doubles are interpreted as microseconds since the unix epoch (`1970-01-01T00:00:00Z`).
2934
2936
@@ -2971,7 +2973,8 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo
2971
2973
2972
2974
Converts a value to a timestamp (`YYYY-MM-DDT00:00:00.000<TZ>`) in the session time zone. Supports strings,
2973
2975
integer, unsigned integer, and double types as input. Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00')
2974
-
if no [Chrono formats] are provided. Strings that parse without a time zone are treated as if they are in the
2976
+
if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided.
2977
+
Strings that parse without a time zone are treated as if they are in the
2975
2978
session time zone, or UTC if no session time zone is set.
2976
2979
Integers, unsigned integers, and doubles are interpreted as milliseconds since the unix epoch (`1970-01-01T00:00:00Z`).
2977
2980
@@ -3014,7 +3017,8 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo
3014
3017
3015
3018
Converts a value to a timestamp (`YYYY-MM-DDT00:00:00.000000000<TZ>`) in the session time zone. Supports strings,
3016
3019
integer, unsigned integer, and double types as input. Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00')
3017
-
if no [Chrono formats] are provided. Strings that parse without a time zone are treated as if they are in the
3020
+
if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided.
3021
+
Strings that parse without a time zone are treated as if they are in the
3018
3022
session time zone. Integers, unsigned integers, and doubles are interpreted as nanoseconds since the unix epoch (`1970-01-01T00:00:00Z`).
3019
3023
3020
3024
The session time zone can be set using the statement `SET TIMEZONE = 'desired time zone'`.
@@ -3056,7 +3060,8 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo
3056
3060
3057
3061
Converts a value to a timestamp (`YYYY-MM-DDT00:00:00<TZ>`) in the session time zone. Supports strings,
3058
3062
integer, unsigned integer, and double types as input. Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00')
3059
-
if no [Chrono formats] are provided. Strings that parse without a time zone are treated as if they are in the
3063
+
if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided.
3064
+
Strings that parse without a time zone are treated as if they are in the
3060
3065
session time zone, or UTC if no session time zone is set.
3061
3066
Integers, unsigned integers, and doubles are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00Z`).
3062
3067
@@ -3097,7 +3102,11 @@ Additional examples can be found [here](https://github.com/apache/datafusion/blo
3097
3102
3098
3103
### `to_unixtime`
3099
3104
3100
-
Converts a value to seconds since the unix epoch (`1970-01-01T00:00:00`). Supports strings, dates, timestamps, integer, unsigned integer, and float types as input. Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00') if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided. Integers, unsigned integers, and floats are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00`).
3105
+
Converts a value to seconds since the unix epoch (`1970-01-01T00:00:00`).
3106
+
Supports strings, dates, timestamps, integer, unsigned integer, and float types as input.
3107
+
Strings are parsed as RFC3339 (e.g. '2023-07-20T05:44:00')
3108
+
if no [Chrono formats](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) are provided.
3109
+
Integers, unsigned integers, and floats are interpreted as seconds since the unix epoch (`1970-01-01T00:00:00`).
0 commit comments