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/07/16 13:36:53 UTC
(datafusion-comet) branch asf-site updated: Publish built docs triggered by 2e49b6118c1820facc903b804a608ad835bfe73c
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 92c52d37be Publish built docs triggered by 2e49b6118c1820facc903b804a608ad835bfe73c
92c52d37be is described below
commit 92c52d37bebc949d87ef25f1f56becc4fba119ee
Author: github-actions[bot] <gi...@users.noreply.github.com>
AuthorDate: Thu Jul 16 13:36:48 2026 +0000
Publish built docs triggered by 2e49b6118c1820facc903b804a608ad835bfe73c
---
_sources/contributor-guide/expression-audits/math_funcs.md.txt | 6 ++++++
contributor-guide/expression-audits/math_funcs.html | 8 ++++++++
searchindex.js | 2 +-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/_sources/contributor-guide/expression-audits/math_funcs.md.txt b/_sources/contributor-guide/expression-audits/math_funcs.md.txt
index f7705d8255..f997480f57 100644
--- a/_sources/contributor-guide/expression-audits/math_funcs.md.txt
+++ b/_sources/contributor-guide/expression-audits/math_funcs.md.txt
@@ -41,6 +41,12 @@
- Spark 3.4.3, 3.5.8, 4.0.1, 4.1.1 (audited 2026-05-27): `Divide(left, right, evalMode)`. Non-ANSI mode wraps the divisor in `If(EqualTo(right, 0), null, right)` so DataFusion never throws. Decimal output is wrapped in `CheckOverflow(failOnError = ANSI)`; ANSI surfaces `NUMERIC_VALUE_OUT_OF_RANGE`, non-ANSI returns NULL.
+## CheckOverflow (internal)
+
+Internal decimal wrapper emitted around every decimal `+ - * /`, `sum`, and `avg` result to null out (non-ANSI) or raise on (ANSI) values that exceed the declared precision. Native impl: `math_funcs/internal/checkoverflow.rs`.
+
+- Performance (tuned 2026-07-15, PR #4937): both the ANSI and non-ANSI paths share a no-overflow fast path built on `is_valid_decimal_precision`, a small inlined bounds check scanned with `all` (short-circuits at the first overflow). When nothing overflows (the common shape) the input buffers are reused via `to_data()` (cheap Arc metadata clone) instead of allocating through `null_if_overflow_precision` (non-ANSI) or running the heavier per-value `validate_decimal_precision` (ANSI). The [...]
+
## abs
- Spark 3.4.3, 3.5.8, 4.0.1, 4.1.1 (audited 2026-05-27): `Abs(child, failOnError)` over `NumericType` plus the two interval types. `failOnError` (ANSI) is propagated to the native `abs` UDF, which throws `ARITHMETIC_OVERFLOW` on `Int.MinValue` / `Long.MinValue` / Decimal MIN. `DayTimeIntervalType` and `YearMonthIntervalType` fall back to Spark. Spark 4.0 / 4.1 do the `NullIntolerant` -> `nullIntolerant: Boolean` refactor; behaviour unchanged.
diff --git a/contributor-guide/expression-audits/math_funcs.html b/contributor-guide/expression-audits/math_funcs.html
index d9edf30d59..4a7e58a7e8 100644
--- a/contributor-guide/expression-audits/math_funcs.html
+++ b/contributor-guide/expression-audits/math_funcs.html
@@ -581,6 +581,13 @@ under the License.
<li><p>Spark 3.4.3, 3.5.8, 4.0.1, 4.1.1 (audited 2026-05-27): <code class="docutils literal notranslate"><span class="pre">Divide(left,</span> <span class="pre">right,</span> <span class="pre">evalMode)</span></code>. Non-ANSI mode wraps the divisor in <code class="docutils literal notranslate"><span class="pre">If(EqualTo(right,</span> <span class="pre">0),</span> <span class="pre">null,</span> <span class="pre">right)</span></code> so DataFusion never throws. Decimal output is wrapped [...]
</ul>
</section>
+<section id="checkoverflow-internal">
+<h2>CheckOverflow (internal)<a class="headerlink" href="#checkoverflow-internal" title="Link to this heading">#</a></h2>
+<p>Internal decimal wrapper emitted around every decimal <code class="docutils literal notranslate"><span class="pre">+</span> <span class="pre">-</span> <span class="pre">*</span> <span class="pre">/</span></code>, <code class="docutils literal notranslate"><span class="pre">sum</span></code>, and <code class="docutils literal notranslate"><span class="pre">avg</span></code> result to null out (non-ANSI) or raise on (ANSI) values that exceed the declared precision. Native impl: <code cl [...]
+<ul class="simple">
+<li><p>Performance (tuned 2026-07-15, PR #4937): both the ANSI and non-ANSI paths share a no-overflow fast path built on <code class="docutils literal notranslate"><span class="pre">is_valid_decimal_precision</span></code>, a small inlined bounds check scanned with <code class="docutils literal notranslate"><span class="pre">all</span></code> (short-circuits at the first overflow). When nothing overflows (the common shape) the input buffers are reused via <code class="docutils literal no [...]
+</ul>
+</section>
<section id="abs">
<h2>abs<a class="headerlink" href="#abs" title="Link to this heading">#</a></h2>
<ul class="simple">
@@ -978,6 +985,7 @@ under the License.
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#id3"><code class="docutils literal notranslate"><span class="pre">+</span></code></a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#id4"><code class="docutils literal notranslate"><span class="pre">-</span></code></a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#id5"><code class="docutils literal notranslate"><span class="pre">/</span></code></a></li>
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#checkoverflow-internal">CheckOverflow (internal)</a></li>
<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="#acos">acos</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#acosh">acosh</a></li>
diff --git a/searchindex.js b/searchindex.js
index a1ec9f64af..8a77796e40 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles": {"!": [[51, "id1"]], "%": [[49, "id1"]], "&": [[39, "id1"]], "*": [[49, "id2"]], "+": [[49, "id3"]], "-": [[49, "id4"]], "/": [[49, "id5"]], "1. Format Your Code": [[36, "format-your-code"]], "1. Install Comet": [[57, "install-comet"], [67, "install-comet"]], "1. Native Operators (nativeExecs map)": [[25, "native-operators-nativeexecs-map"]], "2. Build and Verify": [[36, "build-and-verify"]], "2. Clone Iceberg and Apply Diff": [[57, "clone-iceberg-and-apply- [...]
\ No newline at end of file
+Search.setIndex({"alltitles": {"!": [[51, "id1"]], "%": [[49, "id1"]], "&": [[39, "id1"]], "*": [[49, "id2"]], "+": [[49, "id3"]], "-": [[49, "id4"]], "/": [[49, "id5"]], "1. Format Your Code": [[36, "format-your-code"]], "1. Install Comet": [[57, "install-comet"], [67, "install-comet"]], "1. Native Operators (nativeExecs map)": [[25, "native-operators-nativeexecs-map"]], "2. Build and Verify": [[36, "build-and-verify"]], "2. Clone Iceberg and Apply Diff": [[57, "clone-iceberg-and-apply- [...]
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org