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/datafusion.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new d0fa0f1541 Publish built docs triggered by 
646213ec7c767ddb096df095a84fd01fb7489c06
d0fa0f1541 is described below

commit d0fa0f1541c0f82e991fd59192c0ed7d9aae38ab
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jan 8 01:43:10 2026 +0000

    Publish built docs triggered by 646213ec7c767ddb096df095a84fd01fb7489c06
---
 _sources/user-guide/sql/scalar_functions.md.txt | 14 ++++++++++++--
 user-guide/sql/scalar_functions.html            | 17 +++++++++++++----
 2 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/_sources/user-guide/sql/scalar_functions.md.txt 
b/_sources/user-guide/sql/scalar_functions.md.txt
index fe1ed1cab6..4079802d9e 100644
--- a/_sources/user-guide/sql/scalar_functions.md.txt
+++ b/_sources/user-guide/sql/scalar_functions.md.txt
@@ -2548,7 +2548,7 @@ extract(field FROM source)
 
 ### `date_trunc`
 
-Truncates a timestamp value to a specified precision.
+Truncates a timestamp or time value to a specified precision.
 
 ```sql
 date_trunc(precision, expression)
@@ -2558,6 +2558,8 @@ date_trunc(precision, expression)
 
 - **precision**: Time precision to truncate to. The following precisions are 
supported:
 
+  For Timestamp types:
+
   - year / YEAR
   - quarter / QUARTER
   - month / MONTH
@@ -2569,7 +2571,15 @@ date_trunc(precision, expression)
   - millisecond / MILLISECOND
   - microsecond / MICROSECOND
 
-- **expression**: Time expression to operate on. Can be a constant, column, or 
function.
+  For Time types (hour, minute, second, millisecond, microsecond only):
+
+  - hour / HOUR
+  - minute / MINUTE
+  - second / SECOND
+  - millisecond / MILLISECOND
+  - microsecond / MICROSECOND
+
+- **expression**: Timestamp or time expression to operate on. Can be a 
constant, column, or function.
 
 #### Aliases
 
diff --git a/user-guide/sql/scalar_functions.html 
b/user-guide/sql/scalar_functions.html
index ff71ccca50..cd88f023f8 100644
--- a/user-guide/sql/scalar_functions.html
+++ b/user-guide/sql/scalar_functions.html
@@ -3048,15 +3048,16 @@ Can be a constant, column, or function.</p></li>
 </section>
 <section id="date-trunc">
 <h3><code class="docutils literal notranslate"><span 
class="pre">date_trunc</span></code><a class="headerlink" href="#date-trunc" 
title="Link to this heading">#</a></h3>
-<p>Truncates a timestamp value to a specified precision.</p>
+<p>Truncates a timestamp or time value to a specified precision.</p>
 <div class="highlight-sql notranslate"><div 
class="highlight"><pre><span></span><span class="n">date_trunc</span><span 
class="p">(</span><span class="k">precision</span><span class="p">,</span><span 
class="w"> </span><span class="n">expression</span><span class="p">)</span>
 </pre></div>
 </div>
 <section id="id176">
 <h4>Arguments<a class="headerlink" href="#id176" title="Link to this 
heading">#</a></h4>
-<ul class="simple">
-<li><p><strong>precision</strong>: Time precision to truncate to. The 
following precisions are supported:</p>
 <ul>
+<li><p><strong>precision</strong>: Time precision to truncate to. The 
following precisions are supported:</p>
+<p>For Timestamp types:</p>
+<ul class="simple">
 <li><p>year / YEAR</p></li>
 <li><p>quarter / QUARTER</p></li>
 <li><p>month / MONTH</p></li>
@@ -3068,8 +3069,16 @@ Can be a constant, column, or function.</p></li>
 <li><p>millisecond / MILLISECOND</p></li>
 <li><p>microsecond / MICROSECOND</p></li>
 </ul>
+<p>For Time types (hour, minute, second, millisecond, microsecond only):</p>
+<ul class="simple">
+<li><p>hour / HOUR</p></li>
+<li><p>minute / MINUTE</p></li>
+<li><p>second / SECOND</p></li>
+<li><p>millisecond / MILLISECOND</p></li>
+<li><p>microsecond / MICROSECOND</p></li>
+</ul>
 </li>
-<li><p><strong>expression</strong>: Time expression to operate on. Can be a 
constant, column, or function.</p></li>
+<li><p><strong>expression</strong>: Timestamp or time expression to operate 
on. Can be a constant, column, or function.</p></li>
 </ul>
 </section>
 <section id="id177">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to