This is an automated email from the ASF dual-hosted git repository.
comphead pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 40ed90e1f1 Fix `from_unixtime` function documentation (#15844)
40ed90e1f1 is described below
commit 40ed90e1f1022254a1535782784a481604e4cb53
Author: Victorien <[email protected]>
AuthorDate: Fri Apr 25 17:10:52 2025 +0200
Fix `from_unixtime` function documentation (#15844)
* Fix `from_unixtime` function documentation
* Update scalar_functions.md
---
datafusion/functions/src/datetime/from_unixtime.rs | 2 +-
docs/source/user-guide/sql/scalar_functions.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/datafusion/functions/src/datetime/from_unixtime.rs
b/datafusion/functions/src/datetime/from_unixtime.rs
index ed8181452d..2294ad7acd 100644
--- a/datafusion/functions/src/datetime/from_unixtime.rs
+++ b/datafusion/functions/src/datetime/from_unixtime.rs
@@ -31,7 +31,7 @@ use datafusion_macros::user_doc;
#[user_doc(
doc_section(label = "Time and Date Functions"),
- description = "Converts an integer to RFC3339 timestamp format
(`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are
interpreted as nanoseconds since the unix epoch (`1970-01-01T00:00:00Z`) return
the corresponding timestamp.",
+ description = "Converts an integer to RFC3339 timestamp format
(`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are
interpreted as seconds since the unix epoch (`1970-01-01T00:00:00Z`) return the
corresponding timestamp.",
syntax_example = "from_unixtime(expression[, timezone])",
sql_example = r#"```sql
> select from_unixtime(1599572549, 'America/New_York');
diff --git a/docs/source/user-guide/sql/scalar_functions.md
b/docs/source/user-guide/sql/scalar_functions.md
index 0f08934c8a..81ecf68992 100644
--- a/docs/source/user-guide/sql/scalar_functions.md
+++ b/docs/source/user-guide/sql/scalar_functions.md
@@ -2133,7 +2133,7 @@ _Alias of [date_trunc](#date_trunc)._
### `from_unixtime`
-Converts an integer to RFC3339 timestamp format
(`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are
interpreted as nanoseconds since the unix epoch (`1970-01-01T00:00:00Z`) return
the corresponding timestamp.
+Converts an integer to RFC3339 timestamp format
(`YYYY-MM-DDT00:00:00.000000000Z`). Integers and unsigned integers are
interpreted as seconds since the unix epoch (`1970-01-01T00:00:00Z`) return the
corresponding timestamp.
```sql
from_unixtime(expression[, timezone])
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]