This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/asf-site by this push:
new f1d0637030 Publish built docs triggered by
12b473b08bfc7f64f67b977ffb2252ac09a502ab
f1d0637030 is described below
commit f1d063703002d9da61732aaa809c1e618ae292b6
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Oct 26 14:30:09 2023 +0000
Publish built docs triggered by 12b473b08bfc7f64f67b977ffb2252ac09a502ab
---
_sources/user-guide/sql/scalar_functions.md.txt | 20 ++++++++++++++----
searchindex.js | 2 +-
user-guide/sql/scalar_functions.html | 28 +++++++++++++++++++++----
3 files changed, 41 insertions(+), 9 deletions(-)
diff --git a/_sources/user-guide/sql/scalar_functions.md.txt
b/_sources/user-guide/sql/scalar_functions.md.txt
index d5717b9c21..b7426baea3 100644
--- a/_sources/user-guide/sql/scalar_functions.md.txt
+++ b/_sources/user-guide/sql/scalar_functions.md.txt
@@ -1218,6 +1218,7 @@ regexp_replace(str, regexp, replacement, flags)
- [to_timestamp_millis](#to_timestamp_millis)
- [to_timestamp_micros](#to_timestamp_micros)
- [to_timestamp_seconds](#to_timestamp_seconds)
+- [to_timestamp_nanos](#to_timestamp_nanos)
- [from_unixtime](#from_unixtime)
### `now`
@@ -1390,10 +1391,10 @@ extract(field FROM source)
### `to_timestamp`
-Converts a value to RFC3339 nanosecond timestamp format
(`YYYY-MM-DDT00:00:00.000000000Z`).
+Converts a value to RFC3339 nanosecond timestamp format
(`YYYY-MM-DDT00:00:00Z`).
Supports timestamp, integer, and unsigned integer types as input.
-Integers and unsigned integers are parsed as Unix nanosecond timestamps and
-return the corresponding RFC3339 nanosecond timestamp.
+Integers and unsigned integers are parsed as Unix second timestamps and
+return the corresponding RFC3339 timestamp.
```
to_timestamp(expression)
@@ -1428,7 +1429,18 @@ Integers and unsigned integers are parsed as Unix
nanosecond timestamps and
return the corresponding RFC3339 timestamp.
```
-to_timestamp_micros(expression)
+to_timestamp_nanos(expression)
+```
+
+### `to_timestamp_nanos`
+
+Converts a value to RFC3339 nanosecond timestamp format
(`YYYY-MM-DDT00:00:00.000000000Z`).
+Supports timestamp, integer, and unsigned integer types as input.
+Integers and unsigned integers are parsed as Unix nanosecond timestamps and
+return the corresponding RFC3339 timestamp.
+
+```
+to_timestamp_nanos(expression)
```
#### Arguments
diff --git a/searchindex.js b/searchindex.js
index 37fc611c92..50567ca329 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["contributor-guide/architecture",
"contributor-guide/communication", "contributor-guide/index",
"contributor-guide/quarterly_roadmap", "contributor-guide/roadmap",
"contributor-guide/specification/index",
"contributor-guide/specification/invariants",
"contributor-guide/specification/output-field-name-semantic", "index",
"library-user-guide/adding-udfs", "library-user-guide/building-logical-plans",
"library-user-guide/catalogs", "library-user-guide/custom-tab [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["contributor-guide/architecture",
"contributor-guide/communication", "contributor-guide/index",
"contributor-guide/quarterly_roadmap", "contributor-guide/roadmap",
"contributor-guide/specification/index",
"contributor-guide/specification/invariants",
"contributor-guide/specification/output-field-name-semantic", "index",
"library-user-guide/adding-udfs", "library-user-guide/building-logical-plans",
"library-user-guide/catalogs", "library-user-guide/custom-tab [...]
\ No newline at end of file
diff --git a/user-guide/sql/scalar_functions.html
b/user-guide/sql/scalar_functions.html
index 731e457e46..44b75f2ef3 100644
--- a/user-guide/sql/scalar_functions.html
+++ b/user-guide/sql/scalar_functions.html
@@ -1693,6 +1693,15 @@
</span>
</code>
</a>
+ </li>
+ <li class="toc-h3 nav-item toc-entry">
+ <a class="reference internal nav-link" href="#to-timestamp-nanos">
+ <code class="docutils literal notranslate">
+ <span class="pre">
+ to_timestamp_nanos
+ </span>
+ </code>
+ </a>
<ul class="nav section-nav flex-column">
<li class="toc-h4 nav-item toc-entry">
<a class="reference internal nav-link" href="#id77">
@@ -4185,6 +4194,7 @@ regular expression. The following flags are supported.</p>
<li><p><a class="reference internal"
href="#to-timestamp-millis">to_timestamp_millis</a></p></li>
<li><p><a class="reference internal"
href="#to-timestamp-micros">to_timestamp_micros</a></p></li>
<li><p><a class="reference internal"
href="#to-timestamp-seconds">to_timestamp_seconds</a></p></li>
+<li><p><a class="reference internal"
href="#to-timestamp-nanos">to_timestamp_nanos</a></p></li>
<li><p><a class="reference internal"
href="#from-unixtime">from_unixtime</a></p></li>
</ul>
<section id="now">
@@ -4361,10 +4371,10 @@ Can be a constant, column, or function.</p></li>
</section>
<section id="to-timestamp">
<h3><code class="docutils literal notranslate"><span
class="pre">to_timestamp</span></code><a class="headerlink"
href="#to-timestamp" title="Link to this heading">¶</a></h3>
-<p>Converts a value to RFC3339 nanosecond timestamp format (<code
class="docutils literal notranslate"><span
class="pre">YYYY-MM-DDT00:00:00.000000000Z</span></code>).
+<p>Converts a value to RFC3339 nanosecond timestamp format (<code
class="docutils literal notranslate"><span
class="pre">YYYY-MM-DDT00:00:00Z</span></code>).
Supports timestamp, integer, and unsigned integer types as input.
-Integers and unsigned integers are parsed as Unix nanosecond timestamps and
-return the corresponding RFC3339 nanosecond timestamp.</p>
+Integers and unsigned integers are parsed as Unix second timestamps and
+return the corresponding RFC3339 timestamp.</p>
<div class="highlight-default notranslate"><div
class="highlight"><pre><span></span><span class="n">to_timestamp</span><span
class="p">(</span><span class="n">expression</span><span class="p">)</span>
</pre></div>
</div>
@@ -4399,7 +4409,17 @@ Can be a constant, column, or function, and any
combination of arithmetic operat
Supports timestamp, integer, and unsigned integer types as input.
Integers and unsigned integers are parsed as Unix nanosecond timestamps and
return the corresponding RFC3339 timestamp.</p>
-<div class="highlight-default notranslate"><div
class="highlight"><pre><span></span><span
class="n">to_timestamp_micros</span><span class="p">(</span><span
class="n">expression</span><span class="p">)</span>
+<div class="highlight-default notranslate"><div
class="highlight"><pre><span></span><span
class="n">to_timestamp_nanos</span><span class="p">(</span><span
class="n">expression</span><span class="p">)</span>
+</pre></div>
+</div>
+</section>
+<section id="to-timestamp-nanos">
+<h3><code class="docutils literal notranslate"><span
class="pre">to_timestamp_nanos</span></code><a class="headerlink"
href="#to-timestamp-nanos" title="Link to this heading">¶</a></h3>
+<p>Converts a value to RFC3339 nanosecond timestamp format (<code
class="docutils literal notranslate"><span
class="pre">YYYY-MM-DDT00:00:00.000000000Z</span></code>).
+Supports timestamp, integer, and unsigned integer types as input.
+Integers and unsigned integers are parsed as Unix nanosecond timestamps and
+return the corresponding RFC3339 timestamp.</p>
+<div class="highlight-default notranslate"><div
class="highlight"><pre><span></span><span
class="n">to_timestamp_nanos</span><span class="p">(</span><span
class="n">expression</span><span class="p">)</span>
</pre></div>
</div>
<section id="id77">