You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/08/31 19:01:03 UTC
(datafusion-comet) branch asf-site updated: Publish built docs triggered by a70f117372db438c5a318a1ab079ca3cb5b486fb
This is an automated email from the ASF dual-hosted git repository.
github-actions[bot] pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git
The following commit(s) were added to refs/heads/asf-site by this push:
new c43713256f Publish built docs triggered by a70f117372db438c5a318a1ab079ca3cb5b486fb
c43713256f is described below
commit c43713256fbb013ea9ed7b07a6bb7a367737b8a5
Author: github-actions[bot] <gi...@users.noreply.github.com>
AuthorDate: Mon Aug 31 19:00:57 2026 +0000
Publish built docs triggered by a70f117372db438c5a318a1ab079ca3cb5b486fb
---
.../latest/compatibility/expressions/spark-3.4/math.md.txt | 7 +++++++
.../latest/compatibility/expressions/spark-3.5/math.md.txt | 7 +++++++
.../latest/compatibility/expressions/spark-4.0/math.md.txt | 7 +++++++
.../latest/compatibility/expressions/spark-4.1/math.md.txt | 7 +++++++
_sources/user-guide/latest/expressions.md.txt | 2 +-
searchindex.js | 2 +-
user-guide/latest/compatibility/expressions/spark-3.4/math.html | 9 +++++++++
user-guide/latest/compatibility/expressions/spark-3.5/math.html | 9 +++++++++
user-guide/latest/compatibility/expressions/spark-4.0/math.html | 9 +++++++++
user-guide/latest/compatibility/expressions/spark-4.1/math.html | 9 +++++++++
user-guide/latest/expressions.html | 4 ++--
11 files changed, 68 insertions(+), 4 deletions(-)
diff --git a/_sources/user-guide/latest/compatibility/expressions/spark-3.4/math.md.txt b/_sources/user-guide/latest/compatibility/expressions/spark-3.4/math.md.txt
index 14487e18b8..1b91bbd776 100644
--- a/_sources/user-guide/latest/compatibility/expressions/spark-3.4/math.md.txt
+++ b/_sources/user-guide/latest/compatibility/expressions/spark-3.4/math.md.txt
@@ -38,4 +38,11 @@ The following cases are not supported by Comet and always fall back to Spark, re
The following cases are not supported by Comet and always fall back to Spark, regardless of any `allowIncompatible` setting:
- The `seed` argument must be a literal value
+
+## Round
+
+The following cases have no native implementation and always run in the JVM using Spark's code-generated implementation (inside the Comet pipeline):
+
+- Float and double inputs. Spark rounds them through a BigDecimal built from `java.lang.Double.toString()` rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from
+- Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true
<!--END:EXPR_COMPAT-->
diff --git a/_sources/user-guide/latest/compatibility/expressions/spark-3.5/math.md.txt b/_sources/user-guide/latest/compatibility/expressions/spark-3.5/math.md.txt
index 14487e18b8..1b91bbd776 100644
--- a/_sources/user-guide/latest/compatibility/expressions/spark-3.5/math.md.txt
+++ b/_sources/user-guide/latest/compatibility/expressions/spark-3.5/math.md.txt
@@ -38,4 +38,11 @@ The following cases are not supported by Comet and always fall back to Spark, re
The following cases are not supported by Comet and always fall back to Spark, regardless of any `allowIncompatible` setting:
- The `seed` argument must be a literal value
+
+## Round
+
+The following cases have no native implementation and always run in the JVM using Spark's code-generated implementation (inside the Comet pipeline):
+
+- Float and double inputs. Spark rounds them through a BigDecimal built from `java.lang.Double.toString()` rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from
+- Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true
<!--END:EXPR_COMPAT-->
diff --git a/_sources/user-guide/latest/compatibility/expressions/spark-4.0/math.md.txt b/_sources/user-guide/latest/compatibility/expressions/spark-4.0/math.md.txt
index 14487e18b8..1b91bbd776 100644
--- a/_sources/user-guide/latest/compatibility/expressions/spark-4.0/math.md.txt
+++ b/_sources/user-guide/latest/compatibility/expressions/spark-4.0/math.md.txt
@@ -38,4 +38,11 @@ The following cases are not supported by Comet and always fall back to Spark, re
The following cases are not supported by Comet and always fall back to Spark, regardless of any `allowIncompatible` setting:
- The `seed` argument must be a literal value
+
+## Round
+
+The following cases have no native implementation and always run in the JVM using Spark's code-generated implementation (inside the Comet pipeline):
+
+- Float and double inputs. Spark rounds them through a BigDecimal built from `java.lang.Double.toString()` rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from
+- Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true
<!--END:EXPR_COMPAT-->
diff --git a/_sources/user-guide/latest/compatibility/expressions/spark-4.1/math.md.txt b/_sources/user-guide/latest/compatibility/expressions/spark-4.1/math.md.txt
index 14487e18b8..1b91bbd776 100644
--- a/_sources/user-guide/latest/compatibility/expressions/spark-4.1/math.md.txt
+++ b/_sources/user-guide/latest/compatibility/expressions/spark-4.1/math.md.txt
@@ -38,4 +38,11 @@ The following cases are not supported by Comet and always fall back to Spark, re
The following cases are not supported by Comet and always fall back to Spark, regardless of any `allowIncompatible` setting:
- The `seed` argument must be a literal value
+
+## Round
+
+The following cases have no native implementation and always run in the JVM using Spark's code-generated implementation (inside the Comet pipeline):
+
+- Float and double inputs. Spark rounds them through a BigDecimal built from `java.lang.Double.toString()` rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from
+- Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true
<!--END:EXPR_COMPAT-->
diff --git a/_sources/user-guide/latest/expressions.md.txt b/_sources/user-guide/latest/expressions.md.txt
index 585b861d6d..7c1beed474 100644
--- a/_sources/user-guide/latest/expressions.md.txt
+++ b/_sources/user-guide/latest/expressions.md.txt
@@ -465,7 +465,7 @@ The type-name conversion functions (`bigint`, `binary`, `boolean`, `date`, `deci
| `random` | ✅ | Native | Alias for `rand` (Spark 4.0+); seed must be a literal |
| `randstr` | ✅ | Native | Random string (Spark 4.0+); length and seed must be literals |
| `rint` | ✅ | Native | |
-| `round` | ✅ | Native | Float/double inputs fall back |
+| `round` | ✅ | Hybrid | Float/double inputs route through the JVM codegen dispatcher; other types run natively |
| `sec` | ✅ | Native | |
| `shiftleft` | ✅ | Native | |
| `sign` | ✅ | Native | |
diff --git a/searchindex.js b/searchindex.js
index 1536dae17b..4afd1ce3a4 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles": {"!": [[55, "id1"]], "%": [[53, "id1"]], "&": [[43, "id1"]], "*": [[53, "id2"]], "+": [[53, "id3"]], "-": [[53, "id4"]], "/": [[53, "id5"]], "1. Format Your Code": [[40, "format-your-code"]], "1. Install Comet": [[61, "install-comet"], [71, "install-comet"]], "1. Native Operators (nativeExecs map)": [[28, "native-operators-nativeexecs-map"]], "2. Build and Verify": [[40, "build-and-verify"]], "2. Clone Iceberg and Apply Diff": [[61, "clone-iceberg-and-apply- [...]
\ No newline at end of file
+Search.setIndex({"alltitles": {"!": [[55, "id1"]], "%": [[53, "id1"]], "&": [[43, "id1"]], "*": [[53, "id2"]], "+": [[53, "id3"]], "-": [[53, "id4"]], "/": [[53, "id5"]], "1. Format Your Code": [[40, "format-your-code"]], "1. Install Comet": [[61, "install-comet"], [71, "install-comet"]], "1. Native Operators (nativeExecs map)": [[28, "native-operators-nativeexecs-map"]], "2. Build and Verify": [[40, "build-and-verify"]], "2. Clone Iceberg and Apply Diff": [[61, "clone-iceberg-and-apply- [...]
\ No newline at end of file
diff --git a/user-guide/latest/compatibility/expressions/spark-3.4/math.html b/user-guide/latest/compatibility/expressions/spark-3.4/math.html
index 621305d3fe..62c3a0afeb 100644
--- a/user-guide/latest/compatibility/expressions/spark-3.4/math.html
+++ b/user-guide/latest/compatibility/expressions/spark-3.4/math.html
@@ -803,6 +803,14 @@ under the License.
<ul class="simple">
<li><p>The <code class="docutils literal notranslate"><span class="pre">seed</span></code> argument must be a literal value</p></li>
</ul>
+</section>
+<section id="round">
+<h2>Round<a class="headerlink" href="#round" title="Link to this heading">#</a></h2>
+<p>The following cases have no native implementation and always run in the JVM using Spark’s code-generated implementation (inside the Comet pipeline):</p>
+<ul class="simple">
+<li><p>Float and double inputs. Spark rounds them through a BigDecimal built from <code class="docutils literal notranslate"><span class="pre">java.lang.Double.toString()</span></code> rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from</p></li>
+<li><p>Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true</p></li>
+</ul>
<!--END:EXPR_COMPAT-->
</section>
</section>
@@ -857,6 +865,7 @@ under the License.
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#abs">Abs</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#rand">Rand</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#randn">Randn</a></li>
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#round">Round</a></li>
</ul>
</nav></div>
diff --git a/user-guide/latest/compatibility/expressions/spark-3.5/math.html b/user-guide/latest/compatibility/expressions/spark-3.5/math.html
index c2d3ffa403..cc028fe5a0 100644
--- a/user-guide/latest/compatibility/expressions/spark-3.5/math.html
+++ b/user-guide/latest/compatibility/expressions/spark-3.5/math.html
@@ -803,6 +803,14 @@ under the License.
<ul class="simple">
<li><p>The <code class="docutils literal notranslate"><span class="pre">seed</span></code> argument must be a literal value</p></li>
</ul>
+</section>
+<section id="round">
+<h2>Round<a class="headerlink" href="#round" title="Link to this heading">#</a></h2>
+<p>The following cases have no native implementation and always run in the JVM using Spark’s code-generated implementation (inside the Comet pipeline):</p>
+<ul class="simple">
+<li><p>Float and double inputs. Spark rounds them through a BigDecimal built from <code class="docutils literal notranslate"><span class="pre">java.lang.Double.toString()</span></code> rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from</p></li>
+<li><p>Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true</p></li>
+</ul>
<!--END:EXPR_COMPAT-->
</section>
</section>
@@ -857,6 +865,7 @@ under the License.
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#abs">Abs</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#rand">Rand</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#randn">Randn</a></li>
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#round">Round</a></li>
</ul>
</nav></div>
diff --git a/user-guide/latest/compatibility/expressions/spark-4.0/math.html b/user-guide/latest/compatibility/expressions/spark-4.0/math.html
index 9ef1b9eb81..e2be4f6a34 100644
--- a/user-guide/latest/compatibility/expressions/spark-4.0/math.html
+++ b/user-guide/latest/compatibility/expressions/spark-4.0/math.html
@@ -803,6 +803,14 @@ under the License.
<ul class="simple">
<li><p>The <code class="docutils literal notranslate"><span class="pre">seed</span></code> argument must be a literal value</p></li>
</ul>
+</section>
+<section id="round">
+<h2>Round<a class="headerlink" href="#round" title="Link to this heading">#</a></h2>
+<p>The following cases have no native implementation and always run in the JVM using Spark’s code-generated implementation (inside the Comet pipeline):</p>
+<ul class="simple">
+<li><p>Float and double inputs. Spark rounds them through a BigDecimal built from <code class="docutils literal notranslate"><span class="pre">java.lang.Double.toString()</span></code> rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from</p></li>
+<li><p>Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true</p></li>
+</ul>
<!--END:EXPR_COMPAT-->
</section>
</section>
@@ -857,6 +865,7 @@ under the License.
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#abs">Abs</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#rand">Rand</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#randn">Randn</a></li>
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#round">Round</a></li>
</ul>
</nav></div>
diff --git a/user-guide/latest/compatibility/expressions/spark-4.1/math.html b/user-guide/latest/compatibility/expressions/spark-4.1/math.html
index 4b6cb72f16..154cc39e2f 100644
--- a/user-guide/latest/compatibility/expressions/spark-4.1/math.html
+++ b/user-guide/latest/compatibility/expressions/spark-4.1/math.html
@@ -803,6 +803,14 @@ under the License.
<ul class="simple">
<li><p>The <code class="docutils literal notranslate"><span class="pre">seed</span></code> argument must be a literal value</p></li>
</ul>
+</section>
+<section id="round">
+<h2>Round<a class="headerlink" href="#round" title="Link to this heading">#</a></h2>
+<p>The following cases have no native implementation and always run in the JVM using Spark’s code-generated implementation (inside the Comet pipeline):</p>
+<ul class="simple">
+<li><p>Float and double inputs. Spark rounds them through a BigDecimal built from <code class="docutils literal notranslate"><span class="pre">java.lang.Double.toString()</span></code> rather than from the exact binary value, and that shortened decimal string can round differently than the value it came from</p></li>
+<li><p>Negative-scale decimal inputs, which are only creatable with spark.sql.legacy.allowNegativeScaleOfDecimal=true</p></li>
+</ul>
<!--END:EXPR_COMPAT-->
</section>
</section>
@@ -857,6 +865,7 @@ under the License.
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#abs">Abs</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#rand">Rand</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#randn">Randn</a></li>
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#round">Round</a></li>
</ul>
</nav></div>
diff --git a/user-guide/latest/expressions.html b/user-guide/latest/expressions.html
index 8a01ba452b..327d3c941d 100644
--- a/user-guide/latest/expressions.html
+++ b/user-guide/latest/expressions.html
@@ -2514,8 +2514,8 @@ expressions. The following function families are <strong>not currently planned</
</tr>
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">round</span></code></p></td>
<td><p>✅</p></td>
-<td><p>Native</p></td>
-<td><p>Float/double inputs fall back</p></td>
+<td><p>Hybrid</p></td>
+<td><p>Float/double inputs route through the JVM codegen dispatcher; other types run natively</p></td>
</tr>
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">sec</span></code></p></td>
<td><p>✅</p></td>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org