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/09/26 08:19:10 UTC
(datafusion-comet) branch asf-site updated: Publish built docs triggered by 14f0f59f74dbcf273ff3cbdb1721a5ee535bbe84
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 2d588507b3 Publish built docs triggered by 14f0f59f74dbcf273ff3cbdb1721a5ee535bbe84
2d588507b3 is described below
commit 2d588507b3d24b6e636243b8897d0bcb12b06d02
Author: github-actions[bot] <gi...@users.noreply.github.com>
AuthorDate: Sat Sep 26 08:19:04 2026 +0000
Publish built docs triggered by 14f0f59f74dbcf273ff3cbdb1721a5ee535bbe84
---
...id-013012468fa27c9e9fdb0a14196d357c619c68a8.svg | 2 +-
.../contributor-guide/iceberg-spark-tests.md.txt | 29 +++++++++++++++++-
contributor-guide/iceberg-spark-tests.html | 34 ++++++++++++++++++++--
searchindex.js | 2 +-
4 files changed, 62 insertions(+), 5 deletions(-)
diff --git a/_images/mermaid-013012468fa27c9e9fdb0a14196d357c619c68a8.svg b/_images/mermaid-013012468fa27c9e9fdb0a14196d357c619c68a8.svg
index c632f40927..c83374fd03 100644
--- a/_images/mermaid-013012468fa27c9e9fdb0a14196d357c619c68a8.svg
+++ b/_images/mermaid-013012468fa27c9e9fdb0a14196d357c619c68a8.svg
@@ -1 +1 @@
-<svg id="my-svg" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 511.73px; background-color: transparent;" viewBox="0 0 511.7299499511719 942" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#my-svg [...]
\ No newline at end of file
+<svg id="my-svg" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 511.73px; background-color: transparent;" viewBox="0 0 511.7299499511719 942" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#my-svg [...]
\ No newline at end of file
diff --git a/_sources/contributor-guide/iceberg-spark-tests.md.txt b/_sources/contributor-guide/iceberg-spark-tests.md.txt
index fb0e262e34..0db54feeff 100644
--- a/_sources/contributor-guide/iceberg-spark-tests.md.txt
+++ b/_sources/contributor-guide/iceberg-spark-tests.md.txt
@@ -43,7 +43,9 @@ Here is an overview of the changes that the diffs make to Iceberg:
`LocalTableScanExec`, the conversion is declined, and the write silently runs on the JVM writer. Many Iceberg
suites seed their data that way, so leaving it off hides the native writer from most of the write surface.
- Enable fallback logging (`spark.comet.explainFallback.enabled`) so that every operator Comet declines is
- reported in the test output together with the reason it was declined.
+ reported in the test output together with the reason it was declined. The output goes to the JUnit XML
+ reports rather than the CI job log; see [Which writer ran each Iceberg write](#which-writer-ran-each-iceberg-write)
+ for how CI reports native write coverage.
[#3739]: https://github.com/apache/datafusion-comet/pull/3739
[#5259]: https://github.com/apache/datafusion-comet/issues/5259
@@ -154,3 +156,28 @@ path, reflection code (`org.apache.comet.iceberg.IcebergReflection`), or other l
can differ across Iceberg versions. The Comet test suites in the Linux build do not exercise Iceberg's
own Spark tests, so without the label the first Iceberg 1.11 verdict is the merge queue's, and the
first verdict on the older Iceberg versions is the nightly run's, after the change has landed.
+
+### Which writer ran each Iceberg write
+
+A passing Iceberg job does not show that Comet's native writer ran. `CometIcebergNativeWrite` falls back
+to Iceberg's JVM writer without failing the write, no upstream test asserts which writer ran, and Gradle
+does not copy the fallback warnings into the job log. So the core and extensions jobs set
+`COMET_ICEBERG_WRITE_REPORT_DIR`, the environment variable behind the test-only config
+`spark.comet.testing.icebergWriteReport.dir`. When it is set, the Comet driver plugin registers
+`IcebergWriteReportListener`, which writes one JSON line for each Iceberg write the tests run. Each line
+records one of three writers:
+
+- `native`: Comet's native writer (`CometIcebergWriteExec`).
+- `jvm`: Comet's split operator planned the write but kept Iceberg's JVM writer (`IcebergWriteExec`).
+ The line includes the reasons Comet recorded for not converting it.
+- `spark`: Spark's own V2 write operator ran the write, so Comet's split operator never saw it. Examples
+ are `WriteDelta` for merge-on-read, `WriteToDataSourceV2` for a streaming micro-batch, and on Spark
+ 3.4 the CTAS and RTAS execs, which write the table themselves.
+
+`dev/ci/summarize-iceberg-writes.py` turns these records into a table on the job's summary page. It
+shows the count and share of each writer, the most common fallback reasons, and the Spark write
+operators. Each shard and the extensions job gets its own table. The shard coverage job adds one for
+all shards together, counting only the latest attempt of each shard. A shard whose latest attempt
+recorded no writes is named above the table rather than counted from an earlier attempt. The raw
+records are uploaded with the job's other reports. The summary never fails a job.
+`dev/local-ci.sh iceberg` prints the same summary after each shard and after the extensions target.
diff --git a/contributor-guide/iceberg-spark-tests.html b/contributor-guide/iceberg-spark-tests.html
index e56b69d5c6..356f812574 100644
--- a/contributor-guide/iceberg-spark-tests.html
+++ b/contributor-guide/iceberg-spark-tests.html
@@ -572,7 +572,9 @@ write, commit, and row-level-operation tests.</p></li>
<code class="docutils literal notranslate"><span class="pre">LocalTableScanExec</span></code>, the conversion is declined, and the write silently runs on the JVM writer. Many Iceberg
suites seed their data that way, so leaving it off hides the native writer from most of the write surface.</p></li>
<li><p>Enable fallback logging (<code class="docutils literal notranslate"><span class="pre">spark.comet.explainFallback.enabled</span></code>) so that every operator Comet declines is
-reported in the test output together with the reason it was declined.</p></li>
+reported in the test output together with the reason it was declined. The output goes to the JUnit XML
+reports rather than the CI job log; see <a class="reference internal" href="#which-writer-ran-each-iceberg-write">Which writer ran each Iceberg write</a>
+for how CI reports native write coverage.</p></li>
</ul>
<p><code class="docutils literal notranslate"><span class="pre">dev/local-ci.sh</span></code> runs all of the steps below the way CI runs them:</p>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>dev/local-ci.sh<span class="w"> </span>iceberg<span class="w"> </span><span class="c1"># every target the workflow runs</span>
@@ -680,6 +682,31 @@ path, reflection code (<code class="docutils literal notranslate"><span class="p
can differ across Iceberg versions. The Comet test suites in the Linux build do not exercise Iceberg’s
own Spark tests, so without the label the first Iceberg 1.11 verdict is the merge queue’s, and the
first verdict on the older Iceberg versions is the nightly run’s, after the change has landed.</p>
+<section id="which-writer-ran-each-iceberg-write">
+<h3>Which writer ran each Iceberg write<a class="headerlink" href="#which-writer-ran-each-iceberg-write" title="Link to this heading">#</a></h3>
+<p>A passing Iceberg job does not show that Comet’s native writer ran. <code class="docutils literal notranslate"><span class="pre">CometIcebergNativeWrite</span></code> falls back
+to Iceberg’s JVM writer without failing the write, no upstream test asserts which writer ran, and Gradle
+does not copy the fallback warnings into the job log. So the core and extensions jobs set
+<code class="docutils literal notranslate"><span class="pre">COMET_ICEBERG_WRITE_REPORT_DIR</span></code>, the environment variable behind the test-only config
+<code class="docutils literal notranslate"><span class="pre">spark.comet.testing.icebergWriteReport.dir</span></code>. When it is set, the Comet driver plugin registers
+<code class="docutils literal notranslate"><span class="pre">IcebergWriteReportListener</span></code>, which writes one JSON line for each Iceberg write the tests run. Each line
+records one of three writers:</p>
+<ul class="simple">
+<li><p><code class="docutils literal notranslate"><span class="pre">native</span></code>: Comet’s native writer (<code class="docutils literal notranslate"><span class="pre">CometIcebergWriteExec</span></code>).</p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">jvm</span></code>: Comet’s split operator planned the write but kept Iceberg’s JVM writer (<code class="docutils literal notranslate"><span class="pre">IcebergWriteExec</span></code>).
+The line includes the reasons Comet recorded for not converting it.</p></li>
+<li><p><code class="docutils literal notranslate"><span class="pre">spark</span></code>: Spark’s own V2 write operator ran the write, so Comet’s split operator never saw it. Examples
+are <code class="docutils literal notranslate"><span class="pre">WriteDelta</span></code> for merge-on-read, <code class="docutils literal notranslate"><span class="pre">WriteToDataSourceV2</span></code> for a streaming micro-batch, and on Spark
+3.4 the CTAS and RTAS execs, which write the table themselves.</p></li>
+</ul>
+<p><code class="docutils literal notranslate"><span class="pre">dev/ci/summarize-iceberg-writes.py</span></code> turns these records into a table on the job’s summary page. It
+shows the count and share of each writer, the most common fallback reasons, and the Spark write
+operators. Each shard and the extensions job gets its own table. The shard coverage job adds one for
+all shards together, counting only the latest attempt of each shard. A shard whose latest attempt
+recorded no writes is named above the table rather than counted from an earlier attempt. The raw
+records are uploaded with the job’s other reports. The summary never fails a job.
+<code class="docutils literal notranslate"><span class="pre">dev/local-ci.sh</span> <span class="pre">iceberg</span></code> prints the same summary after each shard and after the extensions target.</p>
+</section>
</section>
</section>
@@ -734,7 +761,10 @@ first verdict on the older Iceberg versions is the nightly run’s, after the ch
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#clone-iceberg-and-apply-diff">2. Clone Iceberg and Apply Diff</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#run-iceberg-spark-tests">3. Run Iceberg Spark Tests</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#updating-diffs">Updating Diffs</a></li>
-<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#running-tests-in-ci">Running Tests in CI</a></li>
+<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#running-tests-in-ci">Running Tests in CI</a><ul class="nav section-nav flex-column">
+<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#which-writer-ran-each-iceberg-write">Which writer ran each Iceberg write</a></li>
+</ul>
+</li>
</ul>
</nav></div>
diff --git a/searchindex.js b/searchindex.js
index 786b0e0922..b26660d1c2 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles": {"!": [[56, "id1"]], "%": [[54, "id1"]], "&": [[44, "id1"]], "*": [[54, "id2"]], "+": [[54, "id3"]], "-": [[54, "id4"]], "/": [[54, "id5"]], "1. Format Your Code": [[41, "format-your-code"]], "1. Install Comet": [[62, "install-comet"], [74, "install-comet"]], "1. Native Operators (nativeExecs map)": [[28, "native-operators-nativeexecs-map"]], "2. Build and Verify": [[41, "build-and-verify"]], "2. Clone Iceberg and Apply Diff": [[62, "clone-iceberg-and-apply- [...]
\ No newline at end of file
+Search.setIndex({"alltitles": {"!": [[56, "id1"]], "%": [[54, "id1"]], "&": [[44, "id1"]], "*": [[54, "id2"]], "+": [[54, "id3"]], "-": [[54, "id4"]], "/": [[54, "id5"]], "1. Format Your Code": [[41, "format-your-code"]], "1. Install Comet": [[62, "install-comet"], [74, "install-comet"]], "1. Native Operators (nativeExecs map)": [[28, "native-operators-nativeexecs-map"]], "2. Build and Verify": [[41, "build-and-verify"]], "2. Clone Iceberg and Apply Diff": [[62, "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