You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by gi...@apache.org on 2025/12/04 05:15:35 UTC

(iceberg-rust) branch gh-pages updated: deploy: 3d47be53fbb2486055d83524a0804079cf973c27

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git


The following commit(s) were added to refs/heads/gh-pages by this push:
     new 66f20e4ce deploy: 3d47be53fbb2486055d83524a0804079cf973c27
66f20e4ce is described below

commit 66f20e4cea898b5c460267e06d9fd25480774017
Author: liurenjie1024 <li...@users.noreply.github.com>
AuthorDate: Thu Dec 4 05:15:30 2025 +0000

    deploy: 3d47be53fbb2486055d83524a0804079cf973c27
---
 .../data_file_writer/struct.DataFileWriter.html    |   3 -
 .../struct.DataFileWriterBuilder.html              |  22 +-
 .../struct.EqualityDeleteFileWriter.html           |   3 -
 .../struct.EqualityDeleteFileWriterBuilder.html    |  22 +-
 .../struct.EqualityDeleteWriterConfig.html         |  10 +-
 .../trait.FileNameGenerator.html                   |   1 +
 .../trait.LocationGenerator.html                   |   1 +
 .../writer/file_writer/rolling_writer/index.html   |   2 +-
 .../rolling_writer/struct.RollingFileWriter.html   |  11 +-
 .../struct.RollingFileWriterBuilder.html           |   7 +-
 .../file_writer/struct.ParquetWriterBuilder.html   |   2 +-
 .../file_writer/trait.FileWriterBuilder.html       |   9 +-
 api/iceberg/writer/index.html                      |   4 +-
 .../partitioning/clustered_writer/index.html       |   2 +-
 .../clustered_writer/struct.ClusteredWriter.html   |   7 +-
 .../writer/partitioning/fanout_writer/index.html   |   2 +-
 .../fanout_writer/struct.FanoutWriter.html         |   9 +-
 .../partitioning/trait.PartitioningWriter.html     |   4 +-
 .../struct.UnpartitionedWriter.html                |   1 -
 api/iceberg/writer/trait.CurrentFileStatus.html    |  10 +-
 api/iceberg/writer/trait.IcebergWriter.html        |   6 +-
 api/iceberg/writer/trait.IcebergWriterBuilder.html |  22 +-
 api/iceberg_catalog_hms/struct.HmsCatalog.html     |  90 +--
 .../struct.HmsCatalogBuilder.html                  |   4 +-
 api/search-index.js                                |   4 +-
 api/search.desc/iceberg/iceberg-desc-0-.js         |   2 +-
 .../writer/base_writer/data_file_writer.rs.html    |   6 +-
 .../base_writer/equality_delete_writer.rs.html     |  12 +-
 .../writer/file_writer/location_generator.rs.html  |   4 +-
 api/src/iceberg/writer/file_writer/mod.rs.html     |   4 +-
 .../writer/file_writer/parquet_writer.rs.html      |   4 +-
 .../writer/file_writer/rolling_writer.rs.html      | 502 +++++++------
 api/src/iceberg/writer/mod.rs.html                 | 148 ++--
 .../writer/partitioning/clustered_writer.rs.html   | 795 ++++++++++-----------
 .../writer/partitioning/fanout_writer.rs.html      | 619 ++++++++--------
 .../partitioning/unpartitioned_writer.rs.html      |   2 +-
 api/trait.impl/core/clone/trait.Clone.js           |   4 +-
 api/trait.impl/core/marker/trait.Sync.js           |   4 +-
 api/trait.impl/iceberg/catalog/trait.Catalog.js    |   4 +-
 .../iceberg/catalog/trait.CatalogBuilder.js        |   4 +-
 40 files changed, 1173 insertions(+), 1199 deletions(-)

diff --git a/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriter.html b/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriter.html
index f2185727b..686166e19 100644
--- a/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriter.html
+++ b/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriter.html
@@ -20,9 +20,6 @@ If close failed, the data written before maybe be lost. User may need to recreat
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     &lt;B as <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>&gt;::<a class="associatedtype" href="../../file_writer/trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></sect [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     &lt;B as <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>&gt;::<a class="associatedtype" href="../../file_writer/trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><s [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
diff --git a/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriterBuilder.html b/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriterBuilder.html
index 65a3c129b..81771c9ce 100644
--- a/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriterBuilder.html
+++ b/api/iceberg/writer/base_writer/data_file_writer/struct.DataFileWriterBuilder.html
@@ -1,30 +1,27 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builder for `DataFileWriter`."><title>DataFileWriterBuilder in iceberg::writer::base_writer::data_file_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,F [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builder for `DataFileWriter`."><title>DataFileWriterBuilder in iceberg::writer::base_writer::data_file_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,F [...]
 </div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/data_file_writer.rs.html#35-45">Source</a><a href="#impl-DataFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-he [...]
     B: <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="../../file_writer/location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
     F: <a class="trait" href="../../file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/data_file_writer.rs.html#42-44">Source</a><h4 class="code-header">pub  [...]
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/data_file_writer.rs.html#30">Source</a><a href="#impl-Clone-for-DataFileWri [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/data_file_writer.rs.html#30">Source</a><a href="#impl-Debug-for-DataFileWri [...]
     B: <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="../../file_writer/location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
-    F: <a class="trait" href="../../file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.R" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/data_file_writer.rs.html#54">Source</a><a href="#associated [...]
-    self,
+    F: <a class="trait" href="../../file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.R" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/data_file_writer.rs.html#54">Source</a><a href="#associated [...]
+    &amp;'life0 self,
     partition_key: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../spec/struct.PartitionKey.html" title="struct iceberg::spec::PartitionKey">PartitionKey</a>&gt;,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../../type.Result.html" title="type ic [...]
-    Self: 'async_trait,</div></h4></section></summary><div class='docblock'>Build the iceberg writer with an optional partition key.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-Freeze-for-DataFileWriterBuilder%3CB,+L,+F [...]
+    Self: 'async_trait,
+    'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>Build the iceberg writer with an optional partition key.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-Freeze-for-DataFileWriterBuilder%3CB,+L, [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-RefUnwindSafe-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-Unpin-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for [...]
+    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-RefUnwindSafe-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-UnwindSafe-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core [...]
     T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href [...]
     T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><section id="method.as_any" class="method trait-impl"><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4 [...]
     T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https:/ [...]
-    T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href= [...]
-    T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#443">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsaf [...]
+    T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href= [...]
     T: AsAny + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is" class="method trait-impl"><a href="#method.is" class="anchor">§</a><h4 class="code-header">fn <a class="fn">is</a>&lt;T&gt;(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitiv [...]
     T: AsAny,</div></h4></section></summary><div class='docblock'>Returns <code>true</code> if the boxed type is the same as <code>T</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_ref" class="method trait-impl"><a href="#method.downcast_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">downcast_ref</a>&lt;T&gt;(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum [...]
     T: AsAny,</div></h4></section></summary><div class='docblock'>Forward to the method defined on the type <code>Any</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_mut" class="method trait-impl"><a href="#method.downcast_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">downcast_mut</a>&lt;T&gt;(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum co [...]
@@ -49,8 +46,7 @@ otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither
 <code>Action::Follow</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method trait-impl"><a href="#method.or" class="anchor">§</a><h4 class="code-header">fn <a class="fn">or</a>&lt;P, B, E&gt;(self, other: P) -&gt; Or&lt;T, P&gt;<div class="where">where
     T: Policy&lt;B, E&gt;,
     P: Policy&lt;B, E&gt;,</div></h4></section></summary><div class='docblock'>Create a new <code>Policy</code> that returns [<code>Action::Follow</code>] if either <code>self</code> or <code>other</code> returns
-<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_op [...]
-    T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href=" [...]
+<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_op [...]
     U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#810">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-hea [...]
     U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#795">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="cod [...]
     V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T< [...]
diff --git a/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriter.html b/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriter.html
index 439dec869..416b5db98 100644
--- a/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriter.html
+++ b/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriter.html
@@ -17,9 +17,6 @@ If close failed, the data written before maybe be lost. User may need to recreat
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     &lt;B as <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>&gt;::<a class="associatedtype" href="../../file_writer/trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></sect [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     &lt;B as <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>&gt;::<a class="associatedtype" href="../../file_writer/trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><s [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
diff --git a/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriterBuilder.html b/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriterBuilder.html
index c5f9bcc74..ed5904334 100644
--- a/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriterBuilder.html
+++ b/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteFileWriterBuilder.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builder for `EqualityDeleteWriter`."><title>EqualityDeleteFileWriterBuilder in iceberg::writer::base_writer::equality_delete_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-I [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builder for `EqualityDeleteWriter`."><title>EqualityDeleteFileWriterBuilder in iceberg::writer::base_writer::equality_delete_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-I [...]
 </div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#47-60">Source</a><a href="#impl-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="ancho [...]
     B: <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="../../file_writer/location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
@@ -6,28 +6,25 @@
     inner: <a class="struct" href="../../file_writer/rolling_writer/struct.RollingFileWriterBuilder.html" title="struct iceberg::writer::file_writer::rolling_writer::RollingFileWriterBuilder">RollingFileWriterBuilder</a>&lt;B, L, F&gt;,
     config: <a class="struct" href="struct.EqualityDeleteWriterConfig.html" title="struct iceberg::writer::base_writer::equality_delete_writer::EqualityDeleteWriterConfig">EqualityDeleteWriterConfig</a>,
 ) -&gt; Self</h4></section></summary><div class="docblock"><p>Create a new <code>EqualityDeleteFileWriterBuilder</code> using a <code>RollingFileWriterBuilder</code>.</p>
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#37">Source</a><a href="#impl-Clone [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#37">Source</a><a href="#impl-Debug [...]
     B: <a class="trait" href="../../file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="../../file_writer/location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
-    F: <a class="trait" href="../../file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.R" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#124">Source</a><a href="#ass [...]
-    self,
+    F: <a class="trait" href="../../file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.R" class="associatedtype trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#124">Source</a><a href="#ass [...]
+    &amp;'life0 self,
     partition_key: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../spec/struct.PartitionKey.html" title="struct iceberg::spec::PartitionKey">PartitionKey</a>&gt;,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../../type.Result.html" title="type ic [...]
-    Self: 'async_trait,</div></h4></section></summary><div class='docblock'>Build the iceberg writer with an optional partition key.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-Freeze-for-EqualityDeleteFileWri [...]
+    Self: 'async_trait,
+    'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>Build the iceberg writer with an optional partition key.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-Freeze-for-EqualityDeleteFileW [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-RefUnwindSafe-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUn [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-Unpin-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker:: [...]
+    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-RefUnwindSafe-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUn [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-UnwindSafe-for-EqualityDeleteFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.htm [...]
     T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href [...]
     T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><section id="method.as_any" class="method trait-impl"><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4 [...]
     T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https:/ [...]
-    T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href= [...]
-    T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#443">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsaf [...]
+    T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href= [...]
     T: AsAny + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is" class="method trait-impl"><a href="#method.is" class="anchor">§</a><h4 class="code-header">fn <a class="fn">is</a>&lt;T&gt;(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitiv [...]
     T: AsAny,</div></h4></section></summary><div class='docblock'>Returns <code>true</code> if the boxed type is the same as <code>T</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_ref" class="method trait-impl"><a href="#method.downcast_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">downcast_ref</a>&lt;T&gt;(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum [...]
     T: AsAny,</div></h4></section></summary><div class='docblock'>Forward to the method defined on the type <code>Any</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_mut" class="method trait-impl"><a href="#method.downcast_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">downcast_mut</a>&lt;T&gt;(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum co [...]
@@ -52,8 +49,7 @@ otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither
 <code>Action::Follow</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method trait-impl"><a href="#method.or" class="anchor">§</a><h4 class="code-header">fn <a class="fn">or</a>&lt;P, B, E&gt;(self, other: P) -&gt; Or&lt;T, P&gt;<div class="where">where
     T: Policy&lt;B, E&gt;,
     P: Policy&lt;B, E&gt;,</div></h4></section></summary><div class='docblock'>Create a new <code>Policy</code> that returns [<code>Action::Follow</code>] if either <code>self</code> or <code>other</code> returns
-<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_op [...]
-    T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href=" [...]
+<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_op [...]
     U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#810">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-hea [...]
     U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#795">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="cod [...]
     V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T< [...]
diff --git a/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteWriterConfig.html b/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteWriterConfig.html
index d5953cbd4..65ca504a9 100644
--- a/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteWriterConfig.html
+++ b/api/iceberg/writer/base_writer/equality_delete_writer/struct.EqualityDeleteWriterConfig.html
@@ -1,12 +1,11 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Config for `EqualityDeleteWriter`."><title>EqualityDeleteWriterConfig in iceberg::writer::base_writer::equality_delete_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic- [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Config for `EqualityDeleteWriter`."><title>EqualityDeleteWriterConfig in iceberg::writer::base_writer::equality_delete_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic- [...]
 </div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-EqualityDeleteWriterConfig" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#71-115">Source</a><a href="#impl-EqualityDeleteWriterConfig" class="anchor">§</a><h3 class="code-header">imp [...]
 </div></details><details class="toggle method-toggle" open><summary><section id="method.projected_arrow_schema_ref" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#112-114">Source</a><h4 class="code-header">pub fn <a href="#method.projected_arrow_schema_ref" class="fn">projected_arrow_schema_ref</a>(&amp;self) -&gt; &amp;ArrowSchemaRef</h4></section></summary><div class="docblock"><p>Return projected Schema</p>
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-EqualityDeleteWriterConfig" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#63">Source</a><a href="#impl-Clone-for-EqualityDelet [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-EqualityDeleteWriterConfig" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/base_writer/equality_delete_writer.rs.html#63">Source</a><a href="#impl-Debug-for-EqualityDelet [...]
     T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href [...]
     T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><section id="method.as_any" class="method trait-impl"><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4 [...]
     T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https:/ [...]
-    T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href= [...]
-    T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#443">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsaf [...]
+    T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href= [...]
     T: AsAny + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.is" class="method trait-impl"><a href="#method.is" class="anchor">§</a><h4 class="code-header">fn <a class="fn">is</a>&lt;T&gt;(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitiv [...]
     T: AsAny,</div></h4></section></summary><div class='docblock'>Returns <code>true</code> if the boxed type is the same as <code>T</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_ref" class="method trait-impl"><a href="#method.downcast_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">downcast_ref</a>&lt;T&gt;(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum [...]
     T: AsAny,</div></h4></section></summary><div class='docblock'>Forward to the method defined on the type <code>Any</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.downcast_mut" class="method trait-impl"><a href="#method.downcast_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">downcast_mut</a>&lt;T&gt;(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum co [...]
@@ -31,8 +30,7 @@ otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither
 <code>Action::Follow</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method trait-impl"><a href="#method.or" class="anchor">§</a><h4 class="code-header">fn <a class="fn">or</a>&lt;P, B, E&gt;(self, other: P) -&gt; Or&lt;T, P&gt;<div class="where">where
     T: Policy&lt;B, E&gt;,
     P: Policy&lt;B, E&gt;,</div></h4></section></summary><div class='docblock'>Create a new <code>Policy</code> that returns [<code>Action::Follow</code>] if either <code>self</code> or <code>other</code> returns
-<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_op [...]
-    T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href=" [...]
+<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_op [...]
     U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#810">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-hea [...]
     U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#795">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="cod [...]
     V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T< [...]
diff --git a/api/iceberg/writer/file_writer/location_generator/trait.FileNameGenerator.html b/api/iceberg/writer/file_writer/location_generator/trait.FileNameGenerator.html
index 9abc74b14..512591edf 100644
--- a/api/iceberg/writer/file_writer/location_generator/trait.FileNameGenerator.html
+++ b/api/iceberg/writer/file_writer/location_generator/trait.FileNameGenerator.html
@@ -1,6 +1,7 @@
 <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="`FileNameGeneratorTrait` used to generate file name for data file. The file name can be passed to `LocationGenerator` to generate the location of the file."><title>FileNameGenerator in iceberg::writer::file_writer::location_generator - Rust</title><script>if(window.location.protocol!=="f [...]
     <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>
     + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>
+    + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>
     + 'static {
     // Required method
     fn <a href="#tymethod.generate_file_name" class="fn">generate_file_name</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>;
diff --git a/api/iceberg/writer/file_writer/location_generator/trait.LocationGenerator.html b/api/iceberg/writer/file_writer/location_generator/trait.LocationGenerator.html
index ac0f3fe6f..afae084c0 100644
--- a/api/iceberg/writer/file_writer/location_generator/trait.LocationGenerator.html
+++ b/api/iceberg/writer/file_writer/location_generator/trait.LocationGenerator.html
@@ -1,6 +1,7 @@
 <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="`LocationGenerator` used to generate the location of data file."><title>LocationGenerator in iceberg::writer::file_writer::location_generator - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2, [...]
     <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>
     + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>
+    + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>
     + 'static {
     // Required method
     fn <a href="#tymethod.generate_location" class="fn">generate_location</a>(
diff --git a/api/iceberg/writer/file_writer/rolling_writer/index.html b/api/iceberg/writer/file_writer/rolling_writer/index.html
index 0d455aa89..2ff1321ae 100644
--- a/api/iceberg/writer/file_writer/rolling_writer/index.html
+++ b/api/iceberg/writer/file_writer/rolling_writer/index.html
@@ -1,3 +1,3 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Module providing writers that can automatically roll over to new files based on size thresholds."><title>iceberg::writer::file_writer::rolling_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.tt [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Module providing writers that can automatically roll over to new files based on size thresholds."><title>iceberg::writer::file_writer::rolling_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.tt [...]
 </div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.RollingFileWriter.html" title="struct iceberg::writer::file_writer::rolling_writer::RollingFileWriter">Rolling<wbr>File<wbr>Writer</a></dt><dd>A writer that automatically rolls over to a new file when the data size
 exceeds a target threshold.</dd><dt><a class="struct" href="struct.RollingFileWriterBuilder.html" title="struct iceberg::writer::file_writer::rolling_writer::RollingFileWriterBuilder">Rolling<wbr>File<wbr>Writer<wbr>Builder</a></dt><dd>Builder for <a href="struct.RollingFileWriter.html" title="struct iceberg::writer::file_writer::rolling_writer::RollingFileWriter"><code>RollingFileWriter</code></a>.</dd></dl></section></div></main></body></html>
\ No newline at end of file
diff --git a/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriter.html b/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriter.html
index ce33221f5..8fa79e876 100644
--- a/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriter.html
+++ b/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriter.html
@@ -3,10 +3,10 @@ exceeds a target threshold.</p>
 <p>This writer wraps another file writer that tracks the amount of data written.
 When the data size exceeds the target size, it closes the current file and
 starts writing to a new one.</p>
-</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-RollingFileWriter%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#149-242">Source</a><a href="#impl-RollingFileWriter%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">im [...]
+</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-RollingFileWriter%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#149-240">Source</a><a href="#impl-RollingFileWriter%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">im [...]
     B: <a class="trait" href="../trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="../location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
-    F: <a class="trait" href="../location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.write" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#186-225">Source</a><h4 class="code-header">pub async fn <a h [...]
+    F: <a class="trait" href="../location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.write" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#186-223">Source</a><h4 class="code-header">pub async fn <a h [...]
     &amp;mut self,
     partition_key: &amp;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../../spec/struct.PartitionKey.html" title="struct iceberg::spec::PartitionKey">PartitionKey</a>&gt;,
     input: &amp;RecordBatch,
@@ -20,11 +20,11 @@ starts writing to a new one.</p>
 <p>A <code>Result</code> indicating success or failure</p>
 <h5 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h5>
 <p>Returns an error if the writer is not initialized or if writing fails</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#233-241">Source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self) -&gt; <a class="type" href="../../../type.Result.html" title="type iceberg::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.h [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#231-239">Source</a><h4 class="code-header">pub async fn <a href="#method.close" class="fn">close</a>(self) -&gt; <a class="type" href="../../../type.Result.html" title="type iceberg::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.h [...]
 <h5 id="returns-1"><a class="doc-anchor" href="#returns-1">§</a>Returns</h5>
 <p>A <code>Result</code> containing a vector of <code>DataFileBuilder</code> instances representing
 all files that were written, including any that were created due to rollover</p>
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-CurrentFileStatus-for-RollingFileWriter%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#244-258">Source</a><a href="#impl-CurrentFil [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-CurrentFileStatus-for-RollingFileWriter%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#242-256">Source</a><a href="#impl-CurrentFil [...]
     B: <a class="trait" href="../trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="../location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
     F: <a class="trait" href="../location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#141-146">Source</a><a href="#method.fmt" class="anc [...]
@@ -32,9 +32,6 @@ all files that were written, including any that were created due to rollover</p>
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     &lt;B as <a class="trait" href="../trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>&gt;::<a class="associatedtype" href="../trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwin [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     &lt;B as <a class="trait" href="../trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>&gt;::<a class="associatedtype" href="../trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-Roll [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
diff --git a/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriterBuilder.html b/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriterBuilder.html
index 4b91b7105..6c9cba9e6 100644
--- a/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriterBuilder.html
+++ b/api/iceberg/writer/file_writer/rolling_writer/struct.RollingFileWriterBuilder.html
@@ -34,14 +34,11 @@
 </ul>
 <h5 id="returns-1"><a class="doc-anchor" href="#returns-1">§</a>Returns</h5>
 <p>A new <code>RollingFileWriterBuilder</code> instance with default target file size</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.build" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#106-116">Source</a><h4 class="code-header">pub fn <a href="#method.build" class="fn">build</a>(self) -&gt; <a class="struct" href="struct.RollingFileWriter.html" title="struct iceberg::writer::file_writer::rolling_writer::RollingFileWriter">RollingFileWriter</a>&lt;B, L, F&gt;</h4></s [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="method.build" class="method"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#106-116">Source</a><h4 class="code-header">pub fn <a href="#method.build" class="fn">build</a>(&amp;self) -&gt; <a class="struct" href="struct.RollingFileWriter.html" title="struct iceberg::writer::file_writer::rolling_writer::RollingFileWriter">RollingFileWriter</a>&lt;B, L, F&gt;</h [...]
 </div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/file_writer/rolling_writer.rs.html#30">Source</a><a href="#impl-Clone-for-RollingFil [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-RefUnwindSafe-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
-    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-Unpin-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</ [...]
+    F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-RefUnwindSafe-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" [...]
     B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
     F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a href="#impl-UnwindSafe-for-RollingFileWriterBuilder%3CB,+L,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, L, F&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trai [...]
diff --git a/api/iceberg/writer/file_writer/struct.ParquetWriterBuilder.html b/api/iceberg/writer/file_writer/struct.ParquetWriterBuilder.html
index 8085b3ca1..cbe014b41 100644
--- a/api/iceberg/writer/file_writer/struct.ParquetWriterBuilder.html
+++ b/api/iceberg/writer/file_writer/struct.ParquetWriterBuilder.html
@@ -6,7 +6,7 @@ To construct the write result, the schema should contain the <code>PARQUET_FIELD
     schema: <a class="type" href="../../spec/type.SchemaRef.html" title="type iceberg::spec::SchemaRef">SchemaRef</a>,
     match_mode: <a class="enum" href="../../arrow/enum.FieldMatchMode.html" title="enum iceberg::arrow::FieldMatchMode">FieldMatchMode</a>,
 ) -&gt; Self</h4></section></summary><div class="docblock"><p>Create a new <code>ParquetWriterBuilder</code> with custom match mode</p>
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-ParquetWriterBuilder" class="impl"><a class="src rightside" href="../../../src/iceberg/writer/file_writer/parquet_writer.rs.html#53">Source</a><a href="#impl-Clone-for-ParquetWriterBuilder" class="a [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-ParquetWriterBuilder" class="impl"><a class="src rightside" href="../../../src/iceberg/writer/file_writer/parquet_writer.rs.html#53">Source</a><a href="#impl-Clone-for-ParquetWriterBuilder" class="a [...]
     T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href [...]
     T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><section id="method.as_any" class="method trait-impl"><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4 [...]
     T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https:/ [...]
diff --git a/api/iceberg/writer/file_writer/trait.FileWriterBuilder.html b/api/iceberg/writer/file_writer/trait.FileWriterBuilder.html
index 47af76f01..d7803d67f 100644
--- a/api/iceberg/writer/file_writer/trait.FileWriterBuilder.html
+++ b/api/iceberg/writer/file_writer/trait.FileWriterBuilder.html
@@ -1,18 +1,19 @@
 <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="File writer builder trait."><title>FileWriterBuilder in iceberg::writer::file_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade. [...]
-    <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>
-    + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>
+    <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>
+    + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>
+    + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>
     + 'static {
     type <a href="#associatedtype.R" class="associatedtype">R</a>: <a class="trait" href="trait.FileWriter.html" title="trait iceberg::writer::file_writer::FileWriter">FileWriter</a>&lt;O&gt;;
 
     // Required method
     fn <a href="#tymethod.build" class="fn">build</a>(
-        self,
+        &amp;self,
         output_file: <a class="struct" href="../../io/struct.OutputFile.html" title="struct iceberg::io::OutputFile">OutputFile</a>,
     ) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../type.Result.html" title="type iceberg::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/cor [...]
 }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>File writer builder trait.</p>
 </div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.R" class="method"><a class="src rightside" href="../../../src/iceberg/writer/file_writer/mod.rs.html#41">Source</a><h4 class="code-header">type <a href="#associatedtype.R" class="associatedtype">R</a>: <a class="trait" href="trait.FileWriter.ht [...]
 </div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.build" class="method"><a class="src rightside" href="../../../src/iceberg/writer/file_writer/mod.rs.html#43">Source</a><h4 class="code-header">fn <a href="#tymethod.build" class="fn">build</a>(
-    self,
+    &amp;self,
     output_file: <a class="struct" href="../../io/struct.OutputFile.html" title="struct iceberg::io::OutputFile">OutputFile</a>,
 ) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../type.Result.html" title="type iceberg::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.FileWriterBuilder.html#associatedtype.R" title="type iceberg::writer::file_writer::FileWriterBuilder::R">R</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ma [...]
 </div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">I [...]
\ No newline at end of file
diff --git a/api/iceberg/writer/index.html b/api/iceberg/writer/index.html
index 48ffcb5dc..64a2612db 100644
--- a/api/iceberg/writer/index.html
+++ b/api/iceberg/writer/index.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Iceberg writer module."><title>iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.w [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Iceberg writer module."><title>iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.w [...]
 <p>This module contains the generic writer trait and specific writer implementation. We categorize the writer into two types:</p>
 <ol>
 <li>FileWriter: writer for physical file format (Such as parquet, orc).</li>
@@ -125,7 +125,7 @@ allowing seamless integration with existing writers. (See the example below.)</p
 </span><span class="kw">impl</span>&lt;B: IcebergWriterBuilder&gt; IcebergWriterBuilder <span class="kw">for </span>LatencyRecordWriterBuilder&lt;B&gt; {
     <span class="kw">type </span>R = LatencyRecordWriter&lt;B::R&gt;;
 
-    <span class="kw">async fn </span>build(<span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
+    <span class="kw">async fn </span>build(<span class="kw-2">&amp;</span><span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
         <span class="prelude-val">Ok</span>(LatencyRecordWriter {
             inner_writer: <span class="self">self</span>.inner_writer_builder.build(partition_key).<span class="kw">await</span><span class="question-mark">?</span>,
         })
diff --git a/api/iceberg/writer/partitioning/clustered_writer/index.html b/api/iceberg/writer/partitioning/clustered_writer/index.html
index f4c4e381c..30da8aaa0 100644
--- a/api/iceberg/writer/partitioning/clustered_writer/index.html
+++ b/api/iceberg/writer/partitioning/clustered_writer/index.html
@@ -1,2 +1,2 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This module provides the `ClusteredWriter` implementation."><title>iceberg::writer::partitioning::clustered_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.wo [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This module provides the `ClusteredWriter` implementation."><title>iceberg::writer::partitioning::clustered_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.wo [...]
 </div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ClusteredWriter.html" title="struct iceberg::writer::partitioning::clustered_writer::ClusteredWriter">Clustered<wbr>Writer</a></dt><dd>A writer that writes data to a single partition at a time.</dd></dl></section></div></main></body></html>
\ No newline at end of file
diff --git a/api/iceberg/writer/partitioning/clustered_writer/struct.ClusteredWriter.html b/api/iceberg/writer/partitioning/clustered_writer/struct.ClusteredWriter.html
index e290366f0..cd1db17c6 100644
--- a/api/iceberg/writer/partitioning/clustered_writer/struct.ClusteredWriter.html
+++ b/api/iceberg/writer/partitioning/clustered_writer/struct.ClusteredWriter.html
@@ -15,17 +15,17 @@ active writer at a time, making it memory efficient for sorted data.</p>
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
     O: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" titl [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-PartitioningWriter%3CI,+O%3E-for-ClusteredWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/clustered_writer.rs.html#89-142">Source</a><a href="#impl [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-PartitioningWriter%3CI,+O%3E-for-ClusteredWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/clustered_writer.rs.html#89-141">Source</a><a href="#impl [...]
     B: <a class="trait" href="../../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
     O: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" titl [...]
-    &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
+    &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
     &amp;'life0 mut self,
     partition_key: <a class="struct" href="../../../spec/struct.PartitionKey.html" title="struct iceberg::spec::PartitionKey">PartitionKey</a>,
     input: I,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../../type.Result.html" title="type ic [...]
     Self: 'async_trait,
-    'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>Write data with a partition key. <a href="../trait.PartitioningWriter.html#tymethod.write">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/clustered_writer.rs.html#136-141">Source</a><a href="#method.close" class="anchor">§</a><h4 class="code-header">fn [...]
+    'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>Write data with a partition key. <a href="../trait.PartitioningWriter.html#tymethod.write">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/clustered_writer.rs.html#135-140">Source</a><a href="#method.close" class="anchor">§</a><h4 class="code-header">fn [...]
     self,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../../type.Result.html" title="type ic [...]
     Self: 'async_trait,</div></h4></section></summary><div class='docblock'>Close the writer and return the output. <a href="../trait.PartitioningWriter.html#tymethod.close">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-ClusteredWriter%3CB,+I,+O%3E" class="impl"><a href= [...]
@@ -39,7 +39,6 @@ active writer at a time, making it memory efficient for sorted data.</p>
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-ClusteredWriter%3CB,+I,+O%3E" class="impl"><a href="#impl-Sync-for-ClusteredWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, I, O&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     &lt;B as <a class="trait" href="../../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;&gt;::<a class="associatedtype" href="../../trait.IcebergWriterBuilder.html#associatedtype.R" title="type iceberg::writer::IcebergWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-ClusteredWriter%3CB,+I,+O%3E" class="impl"><a href="#impl-Unpin-for-ClusteredWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, I, O&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="s [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
diff --git a/api/iceberg/writer/partitioning/fanout_writer/index.html b/api/iceberg/writer/partitioning/fanout_writer/index.html
index cbf7aa85c..e34439d94 100644
--- a/api/iceberg/writer/partitioning/fanout_writer/index.html
+++ b/api/iceberg/writer/partitioning/fanout_writer/index.html
@@ -1,2 +1,2 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This module provides the `FanoutWriter` implementation."><title>iceberg::writer::partitioning::fanout_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,Fi [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This module provides the `FanoutWriter` implementation."><title>iceberg::writer::partitioning::fanout_writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,Fi [...]
 </div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.FanoutWriter.html" title="struct iceberg::writer::partitioning::fanout_writer::FanoutWriter">Fanout<wbr>Writer</a></dt><dd>A writer that can write data to multiple partitions simultaneously.</dd></dl></section></div></main></body></html>
\ No newline at end of file
diff --git a/api/iceberg/writer/partitioning/fanout_writer/struct.FanoutWriter.html b/api/iceberg/writer/partitioning/fanout_writer/struct.FanoutWriter.html
index e0c72fa68..c53088965 100644
--- a/api/iceberg/writer/partitioning/fanout_writer/struct.FanoutWriter.html
+++ b/api/iceberg/writer/partitioning/fanout_writer/struct.FanoutWriter.html
@@ -12,22 +12,22 @@ remain active until the writer is closed.</p>
 <li><code>I</code> - Input type (defaults to <code>RecordBatch</code>)</li>
 <li><code>O</code> - Output collection type (defaults to <code>Vec&lt;DataFile&gt;</code>)</li>
 </ul>
-</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-FanoutWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/fanout_writer.rs.html#54-92">Source</a><a href="#impl-FanoutWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, I,  [...]
+</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-FanoutWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/fanout_writer.rs.html#54-91">Source</a><a href="#impl-FanoutWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, I,  [...]
     B: <a class="trait" href="../../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
     O: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" titl [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-PartitioningWriter%3CI,+O%3E-for-FanoutWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/fanout_writer.rs.html#95-116">Source</a><a href="#impl-Parti [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-PartitioningWriter%3CI,+O%3E-for-FanoutWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/fanout_writer.rs.html#94-115">Source</a><a href="#impl-Parti [...]
     B: <a class="trait" href="../../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
     O: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" titl [...]
-    &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
+    &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
     &amp;'life0 mut self,
     partition_key: <a class="struct" href="../../../spec/struct.PartitionKey.html" title="struct iceberg::spec::PartitionKey">PartitionKey</a>,
     input: I,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../../type.Result.html" title="type ic [...]
     Self: 'async_trait,
-    'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>Write data with a partition key. <a href="../trait.PartitioningWriter.html#tymethod.write">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/fanout_writer.rs.html#107-115">Source</a><a href="#method.close" class="anchor">§</a><h4 class="code-header">fn <a [...]
+    'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>Write data with a partition key. <a href="../trait.PartitioningWriter.html#tymethod.write">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method trait-impl"><a class="src rightside" href="../../../../src/iceberg/writer/partitioning/fanout_writer.rs.html#106-114">Source</a><a href="#method.close" class="anchor">§</a><h4 class="code-header">fn <a [...]
     self,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../../../type.Result.html" title="type ic [...]
     Self: 'async_trait,</div></h4></section></summary><div class='docblock'>Close the writer and return the output. <a href="../trait.PartitioningWriter.html#tymethod.close">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-FanoutWriter%3CB,+I,+O%3E" class="impl"><a href="#i [...]
@@ -40,7 +40,6 @@ remain active until the writer is closed.</p>
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-FanoutWriter%3CB,+I,+O%3E" class="impl"><a href="#impl-Sync-for-FanoutWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, I, O&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     &lt;B as <a class="trait" href="../../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;&gt;::<a class="associatedtype" href="../../trait.IcebergWriterBuilder.html#associatedtype.R" title="type iceberg::writer::IcebergWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-f [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
diff --git a/api/iceberg/writer/partitioning/trait.PartitioningWriter.html b/api/iceberg/writer/partitioning/trait.PartitioningWriter.html
index 62dda733e..69b53159e 100644
--- a/api/iceberg/writer/partitioning/trait.PartitioningWriter.html
+++ b/api/iceberg/writer/partitioning/trait.PartitioningWriter.html
@@ -34,11 +34,11 @@ closing the writer to retrieve the output.</p>
     Self: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Close the writer and return the output.</p>
 <h5 id="returns-1"><a class="doc-anchor" href="#returns-1">§</a>Returns</h5>
 <p>The accumulated output from all write operations.</p>
-</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-PartitioningWriter%3CI,+O%3E-for-ClusteredWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../src/iceberg/writer/partitioning/clustered_writer.rs.html#89-142">Source</a><a href="#impl-PartitioningWriter%3CI,+O%3E-for-ClusteredWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl& [...]
+</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-PartitioningWriter%3CI,+O%3E-for-ClusteredWriter%3CB,+I,+O%3E" class="impl"><a class="src rightside" href="../../../src/iceberg/writer/partitioning/clustered_writer.rs.html#89-141">Source</a><a href="#impl-PartitioningWriter%3CI,+O%3E-for-ClusteredWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl& [...]
     B: <a class="trait" href="../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
     O: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" titl [...]
-    &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
+    &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" t [...]
     B: <a class="trait" href="../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,
     O: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" titl [...]
diff --git a/api/iceberg/writer/partitioning/unpartitioned_writer/struct.UnpartitionedWriter.html b/api/iceberg/writer/partitioning/unpartitioned_writer/struct.UnpartitionedWriter.html
index af569068f..4fbb93323 100644
--- a/api/iceberg/writer/partitioning/unpartitioned_writer/struct.UnpartitionedWriter.html
+++ b/api/iceberg/writer/partitioning/unpartitioned_writer/struct.UnpartitionedWriter.html
@@ -39,7 +39,6 @@ if no data was written.</p>
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-UnpartitionedWriter%3CB,+I,+O%3E" class="impl"><a href="#impl-Sync-for-UnpartitionedWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, I, O&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
-    B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     &lt;B as <a class="trait" href="../../trait.IcebergWriterBuilder.html" title="trait iceberg::writer::IcebergWriterBuilder">IcebergWriterBuilder</a>&lt;I, O&gt;&gt;::<a class="associatedtype" href="../../trait.IcebergWriterBuilder.html#associatedtype.R" title="type iceberg::writer::IcebergWriterBuilder::R">R</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
     I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-UnpartitionedWriter%3CB,+I,+O%3E" class="impl"><a href="#impl-Unpin-for-UnpartitionedWriter%3CB,+I,+O%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, I, O&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a  [...]
     &lt;O as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"  [...]
diff --git a/api/iceberg/writer/trait.CurrentFileStatus.html b/api/iceberg/writer/trait.CurrentFileStatus.html
index 27f0799ad..b8680a143 100644
--- a/api/iceberg/writer/trait.CurrentFileStatus.html
+++ b/api/iceberg/writer/trait.CurrentFileStatus.html
@@ -1,14 +1,14 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The current file status of the Iceberg writer. This is implemented for writers that write a single file at a time."><title>CurrentFileStatus in iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6 [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The current file status of the Iceberg writer. This is implemented for writers that write a single file at a time."><title>CurrentFileStatus in iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6 [...]
     // Required methods
     fn <a href="#tymethod.current_file_path" class="fn">current_file_path</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>;
 <span class="item-spacer"></span>    fn <a href="#tymethod.current_row_num" class="fn">current_row_num</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
 <span class="item-spacer"></span>    fn <a href="#tymethod.current_written_size" class="fn">current_written_size</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>;
 }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The current file status of the Iceberg writer.
 This is implemented for writers that write a single file at a time.</p>
-</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.current_file_path" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#426">Source</a><h4 class="code-header">fn <a href="#tymethod.current_file_path" class="fn">current_file_path</a>(&amp;self) -&gt; <a class="struct" href="https:/ [...]
-</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.current_row_num" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#428">Source</a><h4 class="code-header">fn <a href="#tymethod.current_row_num" class="fn">current_row_num</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get the current file row number.</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.current_written_size" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#430">Source</a><h4 class="code-header">fn <a href="#tymethod.current_written_size" class="fn">current_written_size</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get the current [...]
+</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.current_file_path" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#424">Source</a><h4 class="code-header">fn <a href="#tymethod.current_file_path" class="fn">current_file_path</a>(&amp;self) -&gt; <a class="struct" href="https:/ [...]
+</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.current_row_num" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#426">Source</a><h4 class="code-header">fn <a href="#tymethod.current_row_num" class="fn">current_row_num</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get the current file row number.</p>
+</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.current_written_size" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#428">Source</a><h4 class="code-header">fn <a href="#tymethod.current_written_size" class="fn">current_written_size</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Get the current [...]
 </div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CurrentFileStatus-for-ParquetWriter" class="impl"><a class="src rightside" href="../../src/iceberg/writer/file_writer/parquet_writer.rs.html#587-606">Source</a><a href="#impl-CurrentFileStatus-for-ParquetWriter" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.CurrentFileStatus.html" titl [...]
     B: <a class="trait" href="file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="file_writer/location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
-    F: <a class="trait" href="file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section><section id="impl-CurrentFileStatus-for-RollingFileWriter%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../src/iceberg/writer/file_writer/rolling_writer.rs.html#244-258">Source</a><a href="#impl-CurrentFileStatus-for-RollingFileWriter%3CB,+L,+F%3E" class="ancho [...]
\ No newline at end of file
+    F: <a class="trait" href="file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section><section id="impl-CurrentFileStatus-for-RollingFileWriter%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../src/iceberg/writer/file_writer/rolling_writer.rs.html#242-256">Source</a><a href="#impl-CurrentFileStatus-for-RollingFileWriter%3CB,+L,+F%3E" class="ancho [...]
\ No newline at end of file
diff --git a/api/iceberg/writer/trait.IcebergWriter.html b/api/iceberg/writer/trait.IcebergWriter.html
index 7524e7a58..e404e7c5e 100644
--- a/api/iceberg/writer/trait.IcebergWriter.html
+++ b/api/iceberg/writer/trait.IcebergWriter.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The iceberg writer used to write data to iceberg table."><title>IcebergWriter in iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regul [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The iceberg writer used to write data to iceberg table."><title>IcebergWriter in iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regul [...]
     // Required methods
     fn <a href="#tymethod.write" class="fn">write</a>&lt;'life0, 'async_trait&gt;(
         &amp;'life0 mut self,
@@ -12,13 +12,13 @@
        <span class="where">where Self: 'async_trait,
              'life0: 'async_trait</span>;
 }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The iceberg writer used to write data to iceberg table.</p>
-</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.write" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#414">Source</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>&lt;'life0, 'async_trait&gt;(
+</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.write" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#412">Source</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>&lt;'life0, 'async_trait&gt;(
     &amp;'life0 mut self,
     input: I,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../type.Result.html" title="type iceberg: [...]
     Self: 'async_trait,
     'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Write data to iceberg table.</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.close" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#419">Source</a><h4 class="code-header">fn <a href="#tymethod.close" class="fn">close</a>&lt;'life0, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.close" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#417">Source</a><h4 class="code-header">fn <a href="#tymethod.close" class="fn">close</a>&lt;'life0, 'async_trait&gt;(
     &amp;'life0 mut self,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../type.Result.html" title="type iceberg: [...]
     Self: 'async_trait,
diff --git a/api/iceberg/writer/trait.IcebergWriterBuilder.html b/api/iceberg/writer/trait.IcebergWriterBuilder.html
index 46caf25ab..6e29ddbcc 100644
--- a/api/iceberg/writer/trait.IcebergWriterBuilder.html
+++ b/api/iceberg/writer/trait.IcebergWriterBuilder.html
@@ -1,23 +1,25 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The builder for iceberg writer."><title>IcebergWriterBuilder in iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2 [...]
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The builder for iceberg writer."><title>IcebergWriterBuilder in iceberg::writer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2 [...]
     <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>
-    + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>
+    + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>
     + 'static {
     type <a href="#associatedtype.R" class="associatedtype">R</a>: <a class="trait" href="trait.IcebergWriter.html" title="trait iceberg::writer::IcebergWriter">IcebergWriter</a>&lt;I, O&gt;;
 
     // Required method
-    fn <a href="#tymethod.build" class="fn">build</a>&lt;'async_trait&gt;(
-        self,
+    fn <a href="#tymethod.build" class="fn">build</a>&lt;'life0, 'async_trait&gt;(
+        &amp;'life0 self,
         partition_key: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../spec/struct.PartitionKey.html" title="struct iceberg::spec::PartitionKey">PartitionKey</a>&gt;,
     ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../type.Result.html" title="type iceb [...]
-       <span class="where">where Self: 'async_trait</span>;
+       <span class="where">where Self: 'async_trait,
+             'life0: 'async_trait</span>;
 }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The builder for iceberg writer.</p>
-</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.R" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#405">Source</a><h4 class="code-header">type <a href="#associatedtype.R" class="associatedtype">R</a>: <a class="trait" href="trait.IcebergWriter.html" title=" [...]
-</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.build" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#407">Source</a><h4 class="code-header">fn <a href="#tymethod.build" class="fn">build</a>&lt;'async_trait&gt;(
-    self,
+</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.R" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#403">Source</a><h4 class="code-header">type <a href="#associatedtype.R" class="associatedtype">R</a>: <a class="trait" href="trait.IcebergWriter.html" title=" [...]
+</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.build" class="method"><a class="src rightside" href="../../src/iceberg/writer/mod.rs.html#405">Source</a><h4 class="code-header">fn <a href="#tymethod.build" class="fn">build</a>&lt;'life0, 'async_trait&gt;(
+    &amp;'life0 self,
     partition_key: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../spec/struct.PartitionKey.html" title="struct iceberg::spec::PartitionKey">PartitionKey</a>&gt;,
 ) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../type.Result.html" title="type iceberg: [...]
-    Self: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Build the iceberg writer with an optional partition key.</p>
-</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">I [...]
+    Self: 'async_trait,
+    'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Build the iceberg writer with an optional partition key.</p>
+</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-IcebergWriterBuilder-for-DataFileWriterBuilder%3CB,+L,+F%3E" class="impl"><a class="src rightside" href="../../src/iceberg/writer/base_writer/data_file_writer.rs.html#48-62">Source</a><a href="#impl-IcebergWriterBuilder-for-DataFileWriterBuilder%3CB,+L,+F%3E" class [...]
     B: <a class="trait" href="file_writer/trait.FileWriterBuilder.html" title="trait iceberg::writer::file_writer::FileWriterBuilder">FileWriterBuilder</a>,
     L: <a class="trait" href="file_writer/location_generator/trait.LocationGenerator.html" title="trait iceberg::writer::file_writer::location_generator::LocationGenerator">LocationGenerator</a>,
     F: <a class="trait" href="file_writer/location_generator/trait.FileNameGenerator.html" title="trait iceberg::writer::file_writer::location_generator::FileNameGenerator">FileNameGenerator</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.R-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/iceberg/writer/base_writer/data_file_writer.rs.html#54">Source</a><a href="#associatedtype.R-1" class="anchor">§</a><h4 class="code-he [...]
diff --git a/api/iceberg_catalog_hms/struct.HmsCatalog.html b/api/iceberg_catalog_hms/struct.HmsCatalog.html
index 4cf1f333b..6c8ac53ad 100644
--- a/api/iceberg_catalog_hms/struct.HmsCatalog.html
+++ b/api/iceberg_catalog_hms/struct.HmsCatalog.html
@@ -1,19 +1,19 @@
 <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Hive metastore Catalog."><title>HmsCatalog in iceberg_catalog_hms - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medi [...]
-</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-HmsCatalog" class="impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#170-211">Source</a><a href="#impl-HmsCatalog" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.HmsCatalog.html" title="struc [...]
-</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Catalog-for-HmsCatalog" class="impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#214-612">Source</a><a href="#impl-Catalog-for-HmsCatalog" class="anchor">§</a><h3 class="code-hea [...]
+</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-HmsCatalog" class="impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#170-211">Source</a><a href="#impl-HmsCatalog" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.HmsCatalog.html" title="struc [...]
+</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Catalog-for-HmsCatalog" class="impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#214-612">Source</a><a href="#impl-Catalog-for-HmsCatalog" class="anchor">§</a><h3 class="code-hea [...]
     &amp;'life0 self,
-    parent: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'life1 NamespaceIdent&gt;,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="struct" href="https://doc.rust-lang.org/nig [...]
+    parent: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>&gt;,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>HMS doesn’t support nested namespaces.</p>
 <p>We will return empty list if parent is some.</p>
 <p>Align with java implementation: <a href="https://github.com/apache/iceberg/blob/9bd62f79f8cd973c39d14e89163cb1c707470ed2/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L305C26-L330">https://github.com/apache/iceberg/blob/9bd62f79f8cd973c39d14e89163cb1c707470ed2/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L305C26-L330</a></p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.create_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#256-270">Source</a><a href="#method.create_namespace" class="anchor">§</a><h4 class="code-header">fn <a class="fn">create_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.create_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#256-270">Source</a><a href="#method.create_namespace" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.create_namespace" class="fn">create_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    namespace: &amp;'life1 NamespaceIdent,
+    namespace: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>,
     properties: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;Namespace&gt;&gt; + <a class="trait" href="https://do [...]
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Creates a new namespace with the given identifier and properties.</p>
@@ -30,10 +30,10 @@ successfully converted into a database configuration.</li>
 <li>Errors from the underlying database creation process, converted using
 <code>from_thrift_error</code>.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.get_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#282-296">Source</a><a href="#method.get_namespace" class="anchor">§</a><h4 class="code-header">fn <a class="fn">get_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.get_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#282-296">Source</a><a href="#method.get_namespace" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.get_namespace" class="fn">get_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    namespace: &amp;'life1 NamespaceIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;Namespace&gt;&gt; + <a class="trait" href="https://do [...]
+    namespace: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Retrieves a namespace by its identifier.</p>
@@ -46,10 +46,10 @@ Constructs a <code>Namespace</code> object with the retrieved data and returns i
 <li>If there is an error querying the database, returned by
 <code>from_thrift_error</code>.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.namespace_exists" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#310-327">Source</a><a href="#method.namespace_exists" class="anchor">§</a><h4 class="code-header">fn <a class="fn">namespace_exists</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.namespace_exists" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#310-327">Source</a><a href="#method.namespace_exists" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.namespace_exists" class="fn">namespace_exists</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    namespace: &amp;'life1 NamespaceIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="primitive" href="https://doc.rust-lang.org/ [...]
+    namespace: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Checks if a namespace exists within the Hive Metastore.</p>
@@ -64,11 +64,11 @@ to determine if the specified namespace (database) exists.</p>
 <li><code>Err(...)</code> if an error occurs during validation or the Hive Metastore
 query, with the error encapsulating the issue.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.update_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#339-363">Source</a><a href="#method.update_namespace" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.update_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#339-363">Source</a><a href="#method.update_namespace" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.update_namespace" class="fn">update_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    namespace: &amp;'life1 NamespaceIdent,
+    namespace: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>,
     properties: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="primitive" href="https://doc.rust-lang.org/ [...]
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Asynchronously updates properties of an existing namespace.</p>
@@ -79,10 +79,10 @@ in the Hive Metastore.</p>
 <p>Returns <code>Ok(())</code> if the namespace update is successful. If the
 namespace cannot be updated due to missing information or an error
 during the update process, an <code>Err(...)</code> is returned.</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.drop_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#372-382">Source</a><a href="#method.drop_namespace" class="anchor">§</a><h4 class="code-header">fn <a class="fn">drop_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.drop_namespace" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#372-382">Source</a><a href="#method.drop_namespace" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.drop_namespace" class="fn">drop_namespace</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    namespace: &amp;'life1 NamespaceIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="primitive" href="https://doc.rust-lang.org/ [...]
+    namespace: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Asynchronously drops a namespace from the Hive Metastore.</p>
@@ -93,10 +93,10 @@ during the update process, an <code>Err(...)</code> is returned.</p>
 <li><code>Err(...)</code> signifies failure to drop the namespace due to validation
 errors, connectivity issues, or Hive Metastore constraints.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.list_tables" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#393-410">Source</a><a href="#method.list_tables" class="anchor">§</a><h4 class="code-header">fn <a class="fn">list_tables</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.list_tables" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#393-410">Source</a><a href="#method.list_tables" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.list_tables" class="fn">list_tables</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    namespace: &amp;'life1 NamespaceIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="struct" href="https://doc.rust-lang.org/nig [...]
+    namespace: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Asynchronously lists all tables within a specified namespace.</p>
@@ -108,11 +108,11 @@ representing a table within the specified namespace.</li>
 <li><code>Err(...)</code> if an error occurs during namespace validation or while
 querying the database.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.create_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#424-471">Source</a><a href="#method.create_table" class="anchor">§</a><h4 class="code-header">fn <a class="fn">create_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.create_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#424-471">Source</a><a href="#method.create_table" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.create_table" class="fn">create_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    namespace: &amp;'life1 NamespaceIdent,
-    creation: TableCreation,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;Table&gt;&gt; + <a class="trait" href="https://doc.ru [...]
+    namespace: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.NamespaceIdent.html" title="struct iceberg::catalog::NamespaceIdent">NamespaceIdent</a>,
+    creation: <a class="struct" href="../iceberg/catalog/struct.TableCreation.html" title="struct iceberg::catalog::TableCreation">TableCreation</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Creates a new table within a specified namespace using the provided
@@ -125,10 +125,10 @@ table.</p>
 namespace identifiers, failure to determine a default storage location,
 issues generating or writing table metadata, and errors communicating
 with the Hive Metastore.</p>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.load_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#485-509">Source</a><a href="#method.load_table" class="anchor">§</a><h4 class="code-header">fn <a class="fn">load_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.load_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#485-509">Source</a><a href="#method.load_table" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.load_table" class="fn">load_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    table: &amp;'life1 TableIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;Table&gt;&gt; + <a class="trait" href="https://doc.ru [...]
+    table: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.TableIdent.html" title="struct iceberg::catalog::TableIdent">TableIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Loads a table from the Hive Metastore and constructs a <code>Table</code> object
@@ -143,10 +143,10 @@ based on its metadata.</p>
 <li>Absence of metadata location information in the table’s properties.</li>
 <li>Issues reading or deserializing the table’s metadata file.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.drop_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#521-531">Source</a><a href="#method.drop_table" class="anchor">§</a><h4 class="code-header">fn <a class="fn">drop_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.drop_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#521-531">Source</a><a href="#method.drop_table" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.drop_table" class="fn">drop_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    table: &amp;'life1 TableIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="primitive" href="https://doc.rust-lang.org/ [...]
+    table: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.TableIdent.html" title="struct iceberg::catalog::TableIdent">TableIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Asynchronously drops a table from the database.</p>
@@ -160,10 +160,10 @@ attempting to drop the table. This includes scenarios where
 the table does not exist.</li>
 <li>Any network or communication error occurs with the database backend.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.table_exists" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#540-560">Source</a><a href="#method.table_exists" class="anchor">§</a><h4 class="code-header">fn <a class="fn">table_exists</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.table_exists" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#540-560">Source</a><a href="#method.table_exists" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.table_exists" class="fn">table_exists</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    table: &amp;'life1 TableIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="primitive" href="https://doc.rust-lang.org/ [...]
+    table: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.TableIdent.html" title="struct iceberg::catalog::TableIdent">TableIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Asynchronously checks the existence of a specified table
@@ -174,11 +174,11 @@ in the database.</p>
 <li><code>Ok(false)</code> if the table does not exist in the database.</li>
 <li><code>Err(...)</code> if an error occurs during the process</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.rename_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#568-593">Source</a><a href="#method.rename_table" class="anchor">§</a><h4 class="code-header">fn <a class="fn">rename_table</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.rename_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#568-593">Source</a><a href="#method.rename_table" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.rename_table" class="fn">rename_table</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(
     &amp;'life0 self,
-    src: &amp;'life1 TableIdent,
-    dest: &amp;'life2 TableIdent,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;<a class="primitive" href="https://doc.rust-lang.org/ [...]
+    src: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.TableIdent.html" title="struct iceberg::catalog::TableIdent">TableIdent</a>,
+    dest: &amp;'life2 <a class="struct" href="../iceberg/catalog/struct.TableIdent.html" title="struct iceberg::catalog::TableIdent">TableIdent</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
     'life1: 'async_trait,
@@ -189,17 +189,17 @@ or moves it between namespaces (databases).</p>
 <li><code>Ok(())</code> on successful rename or move of the table.</li>
 <li><code>Err(...)</code> if an error occurs during the process.</li>
 </ul>
-</div></details><details class="toggle method-toggle" open><summary><section id="method.register_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#595-604">Source</a><a href="#method.register_table" class="anchor">§</a><h4 class="code-header">fn <a class="fn">register_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
+</div></details><details class="toggle method-toggle" open><summary><section id="method.register_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#595-604">Source</a><a href="#method.register_table" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.register_table" class="fn">register_table</a>&lt;'life0, 'life1, 'async_trait&gt;(
     &amp;'life0 self,
-    _table_ident: &amp;'life1 TableIdent,
+    _table_ident: &amp;'life1 <a class="struct" href="../iceberg/catalog/struct.TableIdent.html" title="struct iceberg::catalog::TableIdent">TableIdent</a>,
     _metadata_location: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;Table&gt;&gt; + <a class="trait" href="https://doc.ru [...]
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,
-    'life1: 'async_trait,</div></h4></section></summary><div class='docblock'>Register an existing table to the catalog.</div></details><details class="toggle method-toggle" open><summary><section id="method.update_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#606-611">Source</a><a href="#method.update_table" class="anchor">§</a><h4 class="code-header">fn <a class="fn">update_table</a>&lt;'life0, 'async_trait&gt;(
+    'life1: 'async_trait,</div></h4></section></summary><div class='docblock'>Register an existing table to the catalog.</div></details><details class="toggle method-toggle" open><summary><section id="method.update_table" class="method trait-impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#606-611">Source</a><a href="#method.update_table" class="anchor">§</a><h4 class="code-header">fn <a href="../iceberg/catalog/trait.Catalog.html#tymethod.update_table" cla [...]
     &amp;'life0 self,
-    _commit: TableCommit,
-) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;Table&gt;&gt; + <a class="trait" href="https://doc.ru [...]
+    _commit: <a class="struct" href="../iceberg/catalog/struct.TableCommit.html" title="struct iceberg::catalog::TableCommit">TableCommit</a>,
+) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title= [...]
     Self: 'async_trait,
     'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>Update a table to the catalog.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-HmsCatalog" class="impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#162-168">Source</a><a href="#impl-Debug-for-HmsCatalog" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ [...]
     T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href [...]
diff --git a/api/iceberg_catalog_hms/struct.HmsCatalogBuilder.html b/api/iceberg_catalog_hms/struct.HmsCatalogBuilder.html
index 64a395521..c3cd8c93a 100644
--- a/api/iceberg_catalog_hms/struct.HmsCatalogBuilder.html
+++ b/api/iceberg_catalog_hms/struct.HmsCatalogBuilder.html
@@ -1,9 +1,9 @@
 <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builder for [`RestCatalog`]."><title>HmsCatalogBuilder in iceberg_catalog_hms - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,F [...]
-</div></details><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-CatalogBuilder-for-HmsCatalogBuilder" class="impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#69-130">Source</a><a href="#impl-CatalogBuilder-for-HmsCatalogBuilder" class="anchor">§</a><h3 class="cod [...]
+</div></details><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-CatalogBuilder-for-HmsCatalogBuilder" class="impl"><a class="src rightside" href="../src/iceberg_catalog_hms/catalog.rs.html#69-130">Source</a><a href="#impl-CatalogBuilder-for-HmsCatalogBuilder" class="anchor">§</a><h3 class="cod [...]
     self,
     name: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,
     props: <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,
-) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = Result&lt;Self::C&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a></h4></section></summary><div class='docblock'>Create a new catalog instance.</div></details></div></details><details class="toggle implementors-toggle" open><summ [...]
+) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../iceberg/error/type.Result.html" title="type iceberg::error::Result">Result</a>&lt;Self::<a class="associatedtype" href="../iceberg/catalog/trait.CatalogBuilder.html#associatedtype.C" title="type iceberg::catalog::CatalogBuilder::C">C</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang. [...]
     T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href [...]
     T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>,</div></h3></section></summary><div class="impl-items"><section id="method.as_any" class="method trait-impl"><a href="#method.as_any" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_any</a>(&amp;self) -&gt; &amp;(dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> + 'static)</h4 [...]
     T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https:/ [...]
diff --git a/api/search-index.js b/api/search-index.js
index 4370fa15f..8c8ed087d 100644
--- a/api/search-index.js
+++ b/api/search-index.js
@@ -1,4 +1,4 @@
-var searchIndex = new Map(JSON.parse('[["iceberg",{"t":"PPPPPPPPPRKKPPPPPPFGPPPFFFPFPPPPPPPPPPPPPPIPPPPPPPPPPPPFFFPGGPPPPFGNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNMNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNMNQNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNCNMNMNMMNOOCNNNOOONOMNNNNNNNNNNNNNNNNNNNNNNONOOCMNMNONCOONNNNNONCOCMNNNCNNNNNNNNNNNNNNCCNNNNNNNNNNN [...]
+var searchIndex = new Map(JSON.parse('[["iceberg",{"t":"PPPPPPPPPRKKPPPPPPFGPPPFFFPFPPPPPPPPPPPPPPIPPPPPPPPPPPPFFFPGGPPPPFGNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNMNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNMNQNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNCNMNMNMMNOOCNNNOOONOMNNNNNNNNNNNNNNNNNNNNNNONOOCMNMNONCOONNNNNONCOCMNNNCNNNNNNNNNNNNNNCCNNNNNNNNNNN [...]
 if (typeof exports !== 'undefined') exports.searchIndex = searchIndex;
 else if (window.initSearch) window.initSearch(searchIndex);
-//{"start":39,"fragment_lengths":[169325,1613,3562,3755,1767,3412,3464,4249,8572,1325,2013,3213,1116]}
\ No newline at end of file
+//{"start":39,"fragment_lengths":[168911,1613,3562,3755,1767,3412,3464,4249,8572,1325,2013,3213,1116]}
\ No newline at end of file
diff --git a/api/search.desc/iceberg/iceberg-desc-0-.js b/api/search.desc/iceberg/iceberg-desc-0-.js
index e87d3afae..7ec8b5329 100644
--- a/api/search.desc/iceberg/iceberg-desc-0-.js
+++ b/api/search.desc/iceberg/iceberg-desc-0-.js
@@ -1 +1 @@
-searchState.loadedDescShard("iceberg", 0, "Apache Iceberg Official Native Rust Implementation\nAdd an encryption key\nAdd a new schema to the table\nAdd a new schema to the view\nAdd snapshot to table.\nAdd sort order to table.\nAdd a new partition spec to the table\nAdd a new version to the view\nAssign a new UUID to the table\nAssign a new UUID to the view\nThe catalog type that this builder creates.\nThe catalog API for Iceberg Rust.\nCommon interface for all catalog builders.\nCatalo [...]
\ No newline at end of file
+searchState.loadedDescShard("iceberg", 0, "Apache Iceberg Official Native Rust Implementation\nAdd an encryption key\nAdd a new schema to the table\nAdd a new schema to the view\nAdd snapshot to table.\nAdd sort order to table.\nAdd a new partition spec to the table\nAdd a new version to the view\nAssign a new UUID to the table\nAssign a new UUID to the view\nThe catalog type that this builder creates.\nThe catalog API for Iceberg Rust.\nCommon interface for all catalog builders.\nCatalo [...]
\ No newline at end of file
diff --git a/api/src/iceberg/writer/base_writer/data_file_writer.rs.html b/api/src/iceberg/writer/base_writer/data_file_writer.rs.html
index 9f4a68694..b4cac8ea0 100644
--- a/api/src/iceberg/writer/base_writer/data_file_writer.rs.html
+++ b/api/src/iceberg/writer/base_writer/data_file_writer.rs.html
@@ -27,7 +27,7 @@
 <a href=#27 id=27 data-nosnippet>27</a><span class="kw">use crate</span>::{Error, ErrorKind, <span class="prelude-ty">Result</span>};
 <a href=#28 id=28 data-nosnippet>28</a>
 <a href=#29 id=29 data-nosnippet>29</a><span class="doccomment">/// Builder for `DataFileWriter`.
-<a href=#30 id=30 data-nosnippet>30</a></span><span class="attr">#[derive(Clone, Debug)]
+<a href=#30 id=30 data-nosnippet>30</a></span><span class="attr">#[derive(Debug)]
 <a href=#31 id=31 data-nosnippet>31</a></span><span class="kw">pub struct </span>DataFileWriterBuilder&lt;B: FileWriterBuilder, L: LocationGenerator, F: FileNameGenerator&gt; {
 <a href=#32 id=32 data-nosnippet>32</a>    inner: RollingFileWriterBuilder&lt;B, L, F&gt;,
 <a href=#33 id=33 data-nosnippet>33</a>}
@@ -53,9 +53,9 @@
 <a href=#53 id=53 data-nosnippet>53</a>{
 <a href=#54 id=54 data-nosnippet>54</a>    <span class="kw">type </span>R = DataFileWriter&lt;B, L, F&gt;;
 <a href=#55 id=55 data-nosnippet>55</a>
-<a href=#56 id=56 data-nosnippet>56</a>    <span class="kw">async fn </span>build(<span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
+<a href=#56 id=56 data-nosnippet>56</a>    <span class="kw">async fn </span>build(<span class="kw-2">&amp;</span><span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
 <a href=#57 id=57 data-nosnippet>57</a>        <span class="prelude-val">Ok</span>(DataFileWriter {
-<a href=#58 id=58 data-nosnippet>58</a>            inner: <span class="prelude-val">Some</span>(<span class="self">self</span>.inner.clone().build()),
+<a href=#58 id=58 data-nosnippet>58</a>            inner: <span class="prelude-val">Some</span>(<span class="self">self</span>.inner.build()),
 <a href=#59 id=59 data-nosnippet>59</a>            partition_key,
 <a href=#60 id=60 data-nosnippet>60</a>        })
 <a href=#61 id=61 data-nosnippet>61</a>    }
diff --git a/api/src/iceberg/writer/base_writer/equality_delete_writer.rs.html b/api/src/iceberg/writer/base_writer/equality_delete_writer.rs.html
index 8d28305f6..99f07e51b 100644
--- a/api/src/iceberg/writer/base_writer/equality_delete_writer.rs.html
+++ b/api/src/iceberg/writer/base_writer/equality_delete_writer.rs.html
@@ -34,7 +34,7 @@
 <a href=#34 id=34 data-nosnippet>34</a><span class="kw">use crate</span>::{Error, ErrorKind, <span class="prelude-ty">Result</span>};
 <a href=#35 id=35 data-nosnippet>35</a>
 <a href=#36 id=36 data-nosnippet>36</a><span class="doccomment">/// Builder for `EqualityDeleteWriter`.
-<a href=#37 id=37 data-nosnippet>37</a></span><span class="attr">#[derive(Clone, Debug)]
+<a href=#37 id=37 data-nosnippet>37</a></span><span class="attr">#[derive(Debug)]
 <a href=#38 id=38 data-nosnippet>38</a></span><span class="kw">pub struct </span>EqualityDeleteFileWriterBuilder&lt;
 <a href=#39 id=39 data-nosnippet>39</a>    B: FileWriterBuilder,
 <a href=#40 id=40 data-nosnippet>40</a>    L: LocationGenerator,
@@ -60,7 +60,7 @@
 <a href=#60 id=60 data-nosnippet>60</a>}
 <a href=#61 id=61 data-nosnippet>61</a>
 <a href=#62 id=62 data-nosnippet>62</a><span class="doccomment">/// Config for `EqualityDeleteWriter`.
-<a href=#63 id=63 data-nosnippet>63</a></span><span class="attr">#[derive(Clone, Debug)]
+<a href=#63 id=63 data-nosnippet>63</a></span><span class="attr">#[derive(Debug)]
 <a href=#64 id=64 data-nosnippet>64</a></span><span class="kw">pub struct </span>EqualityDeleteWriterConfig {
 <a href=#65 id=65 data-nosnippet>65</a>    <span class="comment">// Field ids used to determine row equality in equality delete files.
 <a href=#66 id=66 data-nosnippet>66</a>    </span>equality_ids: Vec&lt;i32&gt;,
@@ -123,11 +123,11 @@
 <a href=#123 id=123 data-nosnippet>123</a>{
 <a href=#124 id=124 data-nosnippet>124</a>    <span class="kw">type </span>R = EqualityDeleteFileWriter&lt;B, L, F&gt;;
 <a href=#125 id=125 data-nosnippet>125</a>
-<a href=#126 id=126 data-nosnippet>126</a>    <span class="kw">async fn </span>build(<span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
+<a href=#126 id=126 data-nosnippet>126</a>    <span class="kw">async fn </span>build(<span class="kw-2">&amp;</span><span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
 <a href=#127 id=127 data-nosnippet>127</a>        <span class="prelude-val">Ok</span>(EqualityDeleteFileWriter {
-<a href=#128 id=128 data-nosnippet>128</a>            inner: <span class="prelude-val">Some</span>(<span class="self">self</span>.inner.clone().build()),
-<a href=#129 id=129 data-nosnippet>129</a>            projector: <span class="self">self</span>.config.projector,
-<a href=#130 id=130 data-nosnippet>130</a>            equality_ids: <span class="self">self</span>.config.equality_ids,
+<a href=#128 id=128 data-nosnippet>128</a>            inner: <span class="prelude-val">Some</span>(<span class="self">self</span>.inner.build()),
+<a href=#129 id=129 data-nosnippet>129</a>            projector: <span class="self">self</span>.config.projector.clone(),
+<a href=#130 id=130 data-nosnippet>130</a>            equality_ids: <span class="self">self</span>.config.equality_ids.clone(),
 <a href=#131 id=131 data-nosnippet>131</a>            partition_key,
 <a href=#132 id=132 data-nosnippet>132</a>        })
 <a href=#133 id=133 data-nosnippet>133</a>    }
diff --git a/api/src/iceberg/writer/file_writer/location_generator.rs.html b/api/src/iceberg/writer/file_writer/location_generator.rs.html
index 3967cba63..ba6c18613 100644
--- a/api/src/iceberg/writer/file_writer/location_generator.rs.html
+++ b/api/src/iceberg/writer/file_writer/location_generator.rs.html
@@ -24,7 +24,7 @@
 <a href=#24 id=24 data-nosnippet>24</a><span class="kw">use </span><span class="kw">crate</span>::spec::{DataFileFormat, PartitionKey, TableMetadata};
 <a href=#25 id=25 data-nosnippet>25</a>
 <a href=#26 id=26 data-nosnippet>26</a><span class="doccomment">/// `LocationGenerator` used to generate the location of data file.
-<a href=#27 id=27 data-nosnippet>27</a></span><span class="kw">pub trait </span>LocationGenerator: Clone + Send + <span class="lifetime">'static </span>{
+<a href=#27 id=27 data-nosnippet>27</a></span><span class="kw">pub trait </span>LocationGenerator: Clone + Send + Sync + <span class="lifetime">'static </span>{
 <a href=#28 id=28 data-nosnippet>28</a>    <span class="doccomment">/// Generate an absolute path for the given file name that includes the partition path.
 <a href=#29 id=29 data-nosnippet>29</a>    ///
 <a href=#30 id=30 data-nosnippet>30</a>    /// # Arguments
@@ -94,7 +94,7 @@
 <a href=#94 id=94 data-nosnippet>94</a>}
 <a href=#95 id=95 data-nosnippet>95</a>
 <a href=#96 id=96 data-nosnippet>96</a><span class="doccomment">/// `FileNameGeneratorTrait` used to generate file name for data file. The file name can be passed to `LocationGenerator` to generate the location of the file.
-<a href=#97 id=97 data-nosnippet>97</a></span><span class="kw">pub trait </span>FileNameGenerator: Clone + Send + <span class="lifetime">'static </span>{
+<a href=#97 id=97 data-nosnippet>97</a></span><span class="kw">pub trait </span>FileNameGenerator: Clone + Send + Sync + <span class="lifetime">'static </span>{
 <a href=#98 id=98 data-nosnippet>98</a>    <span class="doccomment">/// Generate a file name.
 <a href=#99 id=99 data-nosnippet>99</a>    </span><span class="kw">fn </span>generate_file_name(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; String;
 <a href=#100 id=100 data-nosnippet>100</a>}
diff --git a/api/src/iceberg/writer/file_writer/mod.rs.html b/api/src/iceberg/writer/file_writer/mod.rs.html
index 38fd8d85f..6525db0d7 100644
--- a/api/src/iceberg/writer/file_writer/mod.rs.html
+++ b/api/src/iceberg/writer/file_writer/mod.rs.html
@@ -36,11 +36,11 @@
 <a href=#36 id=36 data-nosnippet>36</a><span class="kw">type </span>DefaultOutput = Vec&lt;DataFileBuilder&gt;;
 <a href=#37 id=37 data-nosnippet>37</a>
 <a href=#38 id=38 data-nosnippet>38</a><span class="doccomment">/// File writer builder trait.
-<a href=#39 id=39 data-nosnippet>39</a></span><span class="kw">pub trait </span>FileWriterBuilder&lt;O = DefaultOutput&gt;: Send + Clone + <span class="lifetime">'static </span>{
+<a href=#39 id=39 data-nosnippet>39</a></span><span class="kw">pub trait </span>FileWriterBuilder&lt;O = DefaultOutput&gt;: Clone + Send + Sync + <span class="lifetime">'static </span>{
 <a href=#40 id=40 data-nosnippet>40</a>    <span class="doccomment">/// The associated file writer type.
 <a href=#41 id=41 data-nosnippet>41</a>    </span><span class="kw">type </span>R: FileWriter&lt;O&gt;;
 <a href=#42 id=42 data-nosnippet>42</a>    <span class="doccomment">/// Build file writer.
-<a href=#43 id=43 data-nosnippet>43</a>    </span><span class="kw">fn </span>build(<span class="self">self</span>, output_file: OutputFile) -&gt; <span class="kw">impl </span>Future&lt;Output = <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt;&gt; + Send;
+<a href=#43 id=43 data-nosnippet>43</a>    </span><span class="kw">fn </span>build(<span class="kw-2">&amp;</span><span class="self">self</span>, output_file: OutputFile) -&gt; <span class="kw">impl </span>Future&lt;Output = <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt;&gt; + Send;
 <a href=#44 id=44 data-nosnippet>44</a>}
 <a href=#45 id=45 data-nosnippet>45</a>
 <a href=#46 id=46 data-nosnippet>46</a><span class="doccomment">/// File writer focus on writing record batch to different physical file format.(Such as parquet. orc)
diff --git a/api/src/iceberg/writer/file_writer/parquet_writer.rs.html b/api/src/iceberg/writer/file_writer/parquet_writer.rs.html
index a5ddbd112..01dd15033 100644
--- a/api/src/iceberg/writer/file_writer/parquet_writer.rs.html
+++ b/api/src/iceberg/writer/file_writer/parquet_writer.rs.html
@@ -81,11 +81,11 @@
 <a href=#81 id=81 data-nosnippet>81</a><span class="kw">impl </span>FileWriterBuilder <span class="kw">for </span>ParquetWriterBuilder {
 <a href=#82 id=82 data-nosnippet>82</a>    <span class="kw">type </span>R = ParquetWriter;
 <a href=#83 id=83 data-nosnippet>83</a>
-<a href=#84 id=84 data-nosnippet>84</a>    <span class="kw">async fn </span>build(<span class="self">self</span>, output_file: OutputFile) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
+<a href=#84 id=84 data-nosnippet>84</a>    <span class="kw">async fn </span>build(<span class="kw-2">&amp;</span><span class="self">self</span>, output_file: OutputFile) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt; {
 <a href=#85 id=85 data-nosnippet>85</a>        <span class="prelude-val">Ok</span>(ParquetWriter {
 <a href=#86 id=86 data-nosnippet>86</a>            schema: <span class="self">self</span>.schema.clone(),
 <a href=#87 id=87 data-nosnippet>87</a>            inner_writer: <span class="prelude-val">None</span>,
-<a href=#88 id=88 data-nosnippet>88</a>            writer_properties: <span class="self">self</span>.props,
+<a href=#88 id=88 data-nosnippet>88</a>            writer_properties: <span class="self">self</span>.props.clone(),
 <a href=#89 id=89 data-nosnippet>89</a>            current_row_num: <span class="number">0</span>,
 <a href=#90 id=90 data-nosnippet>90</a>            output_file,
 <a href=#91 id=91 data-nosnippet>91</a>            nan_value_count_visitor: NanValueCountVisitor::new_with_match_mode(<span class="self">self</span>.match_mode),
diff --git a/api/src/iceberg/writer/file_writer/rolling_writer.rs.html b/api/src/iceberg/writer/file_writer/rolling_writer.rs.html
index 059524a34..8e8c6de64 100644
--- a/api/src/iceberg/writer/file_writer/rolling_writer.rs.html
+++ b/api/src/iceberg/writer/file_writer/rolling_writer.rs.html
@@ -103,15 +103,15 @@
 <a href=#103 id=103 data-nosnippet>103</a>    }
 <a href=#104 id=104 data-nosnippet>104</a>
 <a href=#105 id=105 data-nosnippet>105</a>    <span class="doccomment">/// Build a new [`RollingFileWriter`].
-<a href=#106 id=106 data-nosnippet>106</a>    </span><span class="kw">pub fn </span>build(<span class="self">self</span>) -&gt; RollingFileWriter&lt;B, L, F&gt; {
+<a href=#106 id=106 data-nosnippet>106</a>    </span><span class="kw">pub fn </span>build(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; RollingFileWriter&lt;B, L, F&gt; {
 <a href=#107 id=107 data-nosnippet>107</a>        RollingFileWriter {
 <a href=#108 id=108 data-nosnippet>108</a>            inner: <span class="prelude-val">None</span>,
-<a href=#109 id=109 data-nosnippet>109</a>            inner_builder: <span class="self">self</span>.inner_builder,
+<a href=#109 id=109 data-nosnippet>109</a>            inner_builder: <span class="self">self</span>.inner_builder.clone(),
 <a href=#110 id=110 data-nosnippet>110</a>            target_file_size: <span class="self">self</span>.target_file_size,
 <a href=#111 id=111 data-nosnippet>111</a>            data_file_builders: <span class="macro">vec!</span>[],
-<a href=#112 id=112 data-nosnippet>112</a>            file_io: <span class="self">self</span>.file_io,
-<a href=#113 id=113 data-nosnippet>113</a>            location_generator: <span class="self">self</span>.location_generator,
-<a href=#114 id=114 data-nosnippet>114</a>            file_name_generator: <span class="self">self</span>.file_name_generator,
+<a href=#112 id=112 data-nosnippet>112</a>            file_io: <span class="self">self</span>.file_io.clone(),
+<a href=#113 id=113 data-nosnippet>113</a>            location_generator: <span class="self">self</span>.location_generator.clone(),
+<a href=#114 id=114 data-nosnippet>114</a>            file_name_generator: <span class="self">self</span>.file_name_generator.clone(),
 <a href=#115 id=115 data-nosnippet>115</a>        }
 <a href=#116 id=116 data-nosnippet>116</a>    }
 <a href=#117 id=117 data-nosnippet>117</a>}
@@ -192,253 +192,251 @@
 <a href=#192 id=192 data-nosnippet>192</a>            <span class="comment">// initialize inner writer
 <a href=#193 id=193 data-nosnippet>193</a>            </span><span class="self">self</span>.inner = <span class="prelude-val">Some</span>(
 <a href=#194 id=194 data-nosnippet>194</a>                <span class="self">self</span>.inner_builder
-<a href=#195 id=195 data-nosnippet>195</a>                    .clone()
-<a href=#196 id=196 data-nosnippet>196</a>                    .build(<span class="self">self</span>.new_output_file(partition_key)<span class="question-mark">?</span>)
-<a href=#197 id=197 data-nosnippet>197</a>                    .<span class="kw">await</span><span class="question-mark">?</span>,
-<a href=#198 id=198 data-nosnippet>198</a>            );
-<a href=#199 id=199 data-nosnippet>199</a>        }
-<a href=#200 id=200 data-nosnippet>200</a>
-<a href=#201 id=201 data-nosnippet>201</a>        <span class="kw">if </span><span class="self">self</span>.should_roll() {
-<a href=#202 id=202 data-nosnippet>202</a>            <span class="kw">if let </span><span class="prelude-val">Some</span>(inner) = <span class="self">self</span>.inner.take() {
-<a href=#203 id=203 data-nosnippet>203</a>                <span class="comment">// close the current writer, roll to a new file
-<a href=#204 id=204 data-nosnippet>204</a>                </span><span class="self">self</span>.data_file_builders.extend(inner.close().<span class="kw">await</span><span class="question-mark">?</span>);
-<a href=#205 id=205 data-nosnippet>205</a>
-<a href=#206 id=206 data-nosnippet>206</a>                <span class="comment">// start a new writer
-<a href=#207 id=207 data-nosnippet>207</a>                </span><span class="self">self</span>.inner = <span class="prelude-val">Some</span>(
-<a href=#208 id=208 data-nosnippet>208</a>                    <span class="self">self</span>.inner_builder
-<a href=#209 id=209 data-nosnippet>209</a>                        .clone()
-<a href=#210 id=210 data-nosnippet>210</a>                        .build(<span class="self">self</span>.new_output_file(partition_key)<span class="question-mark">?</span>)
-<a href=#211 id=211 data-nosnippet>211</a>                        .<span class="kw">await</span><span class="question-mark">?</span>,
-<a href=#212 id=212 data-nosnippet>212</a>                );
-<a href=#213 id=213 data-nosnippet>213</a>            }
-<a href=#214 id=214 data-nosnippet>214</a>        }
-<a href=#215 id=215 data-nosnippet>215</a>
-<a href=#216 id=216 data-nosnippet>216</a>        <span class="comment">// write the input
-<a href=#217 id=217 data-nosnippet>217</a>        </span><span class="kw">if let </span><span class="prelude-val">Some</span>(writer) = <span class="self">self</span>.inner.as_mut() {
-<a href=#218 id=218 data-nosnippet>218</a>            <span class="prelude-val">Ok</span>(writer.write(input).<span class="kw">await</span><span class="question-mark">?</span>)
-<a href=#219 id=219 data-nosnippet>219</a>        } <span class="kw">else </span>{
-<a href=#220 id=220 data-nosnippet>220</a>            <span class="prelude-val">Err</span>(Error::new(
-<a href=#221 id=221 data-nosnippet>221</a>                ErrorKind::Unexpected,
-<a href=#222 id=222 data-nosnippet>222</a>                <span class="string">"Writer is not initialized!"</span>,
-<a href=#223 id=223 data-nosnippet>223</a>            ))
-<a href=#224 id=224 data-nosnippet>224</a>        }
-<a href=#225 id=225 data-nosnippet>225</a>    }
-<a href=#226 id=226 data-nosnippet>226</a>
-<a href=#227 id=227 data-nosnippet>227</a>    <span class="doccomment">/// Closes the writer and returns all data file builders.
+<a href=#195 id=195 data-nosnippet>195</a>                    .build(<span class="self">self</span>.new_output_file(partition_key)<span class="question-mark">?</span>)
+<a href=#196 id=196 data-nosnippet>196</a>                    .<span class="kw">await</span><span class="question-mark">?</span>,
+<a href=#197 id=197 data-nosnippet>197</a>            );
+<a href=#198 id=198 data-nosnippet>198</a>        }
+<a href=#199 id=199 data-nosnippet>199</a>
+<a href=#200 id=200 data-nosnippet>200</a>        <span class="kw">if </span><span class="self">self</span>.should_roll() {
+<a href=#201 id=201 data-nosnippet>201</a>            <span class="kw">if let </span><span class="prelude-val">Some</span>(inner) = <span class="self">self</span>.inner.take() {
+<a href=#202 id=202 data-nosnippet>202</a>                <span class="comment">// close the current writer, roll to a new file
+<a href=#203 id=203 data-nosnippet>203</a>                </span><span class="self">self</span>.data_file_builders.extend(inner.close().<span class="kw">await</span><span class="question-mark">?</span>);
+<a href=#204 id=204 data-nosnippet>204</a>
+<a href=#205 id=205 data-nosnippet>205</a>                <span class="comment">// start a new writer
+<a href=#206 id=206 data-nosnippet>206</a>                </span><span class="self">self</span>.inner = <span class="prelude-val">Some</span>(
+<a href=#207 id=207 data-nosnippet>207</a>                    <span class="self">self</span>.inner_builder
+<a href=#208 id=208 data-nosnippet>208</a>                        .build(<span class="self">self</span>.new_output_file(partition_key)<span class="question-mark">?</span>)
+<a href=#209 id=209 data-nosnippet>209</a>                        .<span class="kw">await</span><span class="question-mark">?</span>,
+<a href=#210 id=210 data-nosnippet>210</a>                );
+<a href=#211 id=211 data-nosnippet>211</a>            }
+<a href=#212 id=212 data-nosnippet>212</a>        }
+<a href=#213 id=213 data-nosnippet>213</a>
+<a href=#214 id=214 data-nosnippet>214</a>        <span class="comment">// write the input
+<a href=#215 id=215 data-nosnippet>215</a>        </span><span class="kw">if let </span><span class="prelude-val">Some</span>(writer) = <span class="self">self</span>.inner.as_mut() {
+<a href=#216 id=216 data-nosnippet>216</a>            <span class="prelude-val">Ok</span>(writer.write(input).<span class="kw">await</span><span class="question-mark">?</span>)
+<a href=#217 id=217 data-nosnippet>217</a>        } <span class="kw">else </span>{
+<a href=#218 id=218 data-nosnippet>218</a>            <span class="prelude-val">Err</span>(Error::new(
+<a href=#219 id=219 data-nosnippet>219</a>                ErrorKind::Unexpected,
+<a href=#220 id=220 data-nosnippet>220</a>                <span class="string">"Writer is not initialized!"</span>,
+<a href=#221 id=221 data-nosnippet>221</a>            ))
+<a href=#222 id=222 data-nosnippet>222</a>        }
+<a href=#223 id=223 data-nosnippet>223</a>    }
+<a href=#224 id=224 data-nosnippet>224</a>
+<a href=#225 id=225 data-nosnippet>225</a>    <span class="doccomment">/// Closes the writer and returns all data file builders.
+<a href=#226 id=226 data-nosnippet>226</a>    ///
+<a href=#227 id=227 data-nosnippet>227</a>    /// # Returns
 <a href=#228 id=228 data-nosnippet>228</a>    ///
-<a href=#229 id=229 data-nosnippet>229</a>    /// # Returns
-<a href=#230 id=230 data-nosnippet>230</a>    ///
-<a href=#231 id=231 data-nosnippet>231</a>    /// A `Result` containing a vector of `DataFileBuilder` instances representing
-<a href=#232 id=232 data-nosnippet>232</a>    /// all files that were written, including any that were created due to rollover
-<a href=#233 id=233 data-nosnippet>233</a>    </span><span class="kw">pub async fn </span>close(<span class="kw-2">mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;Vec&lt;DataFileBuilder&gt;&gt; {
-<a href=#234 id=234 data-nosnippet>234</a>        <span class="comment">// close the current writer and merge the output
-<a href=#235 id=235 data-nosnippet>235</a>        </span><span class="kw">if let </span><span class="prelude-val">Some</span>(current_writer) = <span class="self">self</span>.inner {
-<a href=#236 id=236 data-nosnippet>236</a>            <span class="self">self</span>.data_file_builders
-<a href=#237 id=237 data-nosnippet>237</a>                .extend(current_writer.close().<span class="kw">await</span><span class="question-mark">?</span>);
-<a href=#238 id=238 data-nosnippet>238</a>        }
-<a href=#239 id=239 data-nosnippet>239</a>
-<a href=#240 id=240 data-nosnippet>240</a>        <span class="prelude-val">Ok</span>(<span class="self">self</span>.data_file_builders)
-<a href=#241 id=241 data-nosnippet>241</a>    }
-<a href=#242 id=242 data-nosnippet>242</a>}
-<a href=#243 id=243 data-nosnippet>243</a>
-<a href=#244 id=244 data-nosnippet>244</a><span class="kw">impl</span>&lt;B: FileWriterBuilder, L: LocationGenerator, F: FileNameGenerator&gt; CurrentFileStatus
-<a href=#245 id=245 data-nosnippet>245</a>    <span class="kw">for </span>RollingFileWriter&lt;B, L, F&gt;
-<a href=#246 id=246 data-nosnippet>246</a>{
-<a href=#247 id=247 data-nosnippet>247</a>    <span class="kw">fn </span>current_file_path(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; String {
-<a href=#248 id=248 data-nosnippet>248</a>        <span class="self">self</span>.inner.as_ref().unwrap().current_file_path()
-<a href=#249 id=249 data-nosnippet>249</a>    }
-<a href=#250 id=250 data-nosnippet>250</a>
-<a href=#251 id=251 data-nosnippet>251</a>    <span class="kw">fn </span>current_row_num(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize {
-<a href=#252 id=252 data-nosnippet>252</a>        <span class="self">self</span>.inner.as_ref().unwrap().current_row_num()
-<a href=#253 id=253 data-nosnippet>253</a>    }
-<a href=#254 id=254 data-nosnippet>254</a>
-<a href=#255 id=255 data-nosnippet>255</a>    <span class="kw">fn </span>current_written_size(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize {
-<a href=#256 id=256 data-nosnippet>256</a>        <span class="self">self</span>.inner.as_ref().unwrap().current_written_size()
-<a href=#257 id=257 data-nosnippet>257</a>    }
-<a href=#258 id=258 data-nosnippet>258</a>}
-<a href=#259 id=259 data-nosnippet>259</a>
-<a href=#260 id=260 data-nosnippet>260</a><span class="attr">#[cfg(test)]
-<a href=#261 id=261 data-nosnippet>261</a></span><span class="kw">mod </span>tests {
-<a href=#262 id=262 data-nosnippet>262</a>    <span class="kw">use </span>std::collections::HashMap;
-<a href=#263 id=263 data-nosnippet>263</a>    <span class="kw">use </span>std::sync::Arc;
-<a href=#264 id=264 data-nosnippet>264</a>
-<a href=#265 id=265 data-nosnippet>265</a>    <span class="kw">use </span>arrow_array::{ArrayRef, Int32Array, StringArray};
-<a href=#266 id=266 data-nosnippet>266</a>    <span class="kw">use </span>arrow_schema::{DataType, Field, Schema <span class="kw">as </span>ArrowSchema};
-<a href=#267 id=267 data-nosnippet>267</a>    <span class="kw">use </span>parquet::arrow::PARQUET_FIELD_ID_META_KEY;
-<a href=#268 id=268 data-nosnippet>268</a>    <span class="kw">use </span>parquet::file::properties::WriterProperties;
-<a href=#269 id=269 data-nosnippet>269</a>    <span class="kw">use </span>rand::prelude::IteratorRandom;
-<a href=#270 id=270 data-nosnippet>270</a>    <span class="kw">use </span>tempfile::TempDir;
-<a href=#271 id=271 data-nosnippet>271</a>
-<a href=#272 id=272 data-nosnippet>272</a>    <span class="kw">use super</span>::<span class="kw-2">*</span>;
-<a href=#273 id=273 data-nosnippet>273</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIOBuilder;
-<a href=#274 id=274 data-nosnippet>274</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{DataFileFormat, NestedField, PrimitiveType, Schema, Type};
-<a href=#275 id=275 data-nosnippet>275</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::base_writer::data_file_writer::DataFileWriterBuilder;
-<a href=#276 id=276 data-nosnippet>276</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::ParquetWriterBuilder;
-<a href=#277 id=277 data-nosnippet>277</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::location_generator::{
-<a href=#278 id=278 data-nosnippet>278</a>        DefaultFileNameGenerator, DefaultLocationGenerator,
-<a href=#279 id=279 data-nosnippet>279</a>    };
-<a href=#280 id=280 data-nosnippet>280</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::tests::check_parquet_data_file;
-<a href=#281 id=281 data-nosnippet>281</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::{IcebergWriter, IcebergWriterBuilder, RecordBatch};
-<a href=#282 id=282 data-nosnippet>282</a>
-<a href=#283 id=283 data-nosnippet>283</a>    <span class="kw">fn </span>make_test_schema() -&gt; <span class="prelude-ty">Result</span>&lt;Schema&gt; {
-<a href=#284 id=284 data-nosnippet>284</a>        Schema::builder()
-<a href=#285 id=285 data-nosnippet>285</a>            .with_schema_id(<span class="number">1</span>)
-<a href=#286 id=286 data-nosnippet>286</a>            .with_fields(<span class="macro">vec!</span>[
-<a href=#287 id=287 data-nosnippet>287</a>                NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
-<a href=#288 id=288 data-nosnippet>288</a>                NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
-<a href=#289 id=289 data-nosnippet>289</a>            ])
-<a href=#290 id=290 data-nosnippet>290</a>            .build()
-<a href=#291 id=291 data-nosnippet>291</a>    }
-<a href=#292 id=292 data-nosnippet>292</a>
-<a href=#293 id=293 data-nosnippet>293</a>    <span class="kw">fn </span>make_test_arrow_schema() -&gt; ArrowSchema {
-<a href=#294 id=294 data-nosnippet>294</a>        ArrowSchema::new(<span class="macro">vec!</span>[
-<a href=#295 id=295 data-nosnippet>295</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#296 id=296 data-nosnippet>296</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#297 id=297 data-nosnippet>297</a>                <span class="number">1</span>.to_string(),
-<a href=#298 id=298 data-nosnippet>298</a>            )])),
-<a href=#299 id=299 data-nosnippet>299</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#300 id=300 data-nosnippet>300</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#301 id=301 data-nosnippet>301</a>                <span class="number">2</span>.to_string(),
-<a href=#302 id=302 data-nosnippet>302</a>            )])),
-<a href=#303 id=303 data-nosnippet>303</a>        ])
-<a href=#304 id=304 data-nosnippet>304</a>    }
-<a href=#305 id=305 data-nosnippet>305</a>
-<a href=#306 id=306 data-nosnippet>306</a>    <span class="attr">#[tokio::test]
-<a href=#307 id=307 data-nosnippet>307</a>    </span><span class="kw">async fn </span>test_rolling_writer_basic() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#308 id=308 data-nosnippet>308</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
-<a href=#309 id=309 data-nosnippet>309</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
-<a href=#310 id=310 data-nosnippet>310</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
-<a href=#311 id=311 data-nosnippet>311</a>            temp_dir.path().to_str().unwrap().to_string(),
-<a href=#312 id=312 data-nosnippet>312</a>        );
-<a href=#313 id=313 data-nosnippet>313</a>        <span class="kw">let </span>file_name_gen =
-<a href=#314 id=314 data-nosnippet>314</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
-<a href=#315 id=315 data-nosnippet>315</a>
-<a href=#316 id=316 data-nosnippet>316</a>        <span class="comment">// Create schema
-<a href=#317 id=317 data-nosnippet>317</a>        </span><span class="kw">let </span>schema = make_test_schema()<span class="question-mark">?</span>;
-<a href=#318 id=318 data-nosnippet>318</a>
-<a href=#319 id=319 data-nosnippet>319</a>        <span class="comment">// Create writer builders
-<a href=#320 id=320 data-nosnippet>320</a>        </span><span class="kw">let </span>parquet_writer_builder =
-<a href=#321 id=321 data-nosnippet>321</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), Arc::new(schema));
-<a href=#322 id=322 data-nosnippet>322</a>
-<a href=#323 id=323 data-nosnippet>323</a>        <span class="comment">// Set a large target size so no rolling occurs
-<a href=#324 id=324 data-nosnippet>324</a>        </span><span class="kw">let </span>rolling_file_writer_builder = RollingFileWriterBuilder::new(
-<a href=#325 id=325 data-nosnippet>325</a>            parquet_writer_builder,
-<a href=#326 id=326 data-nosnippet>326</a>            <span class="number">1024 </span>* <span class="number">1024</span>,
-<a href=#327 id=327 data-nosnippet>327</a>            file_io.clone(),
-<a href=#328 id=328 data-nosnippet>328</a>            location_gen,
-<a href=#329 id=329 data-nosnippet>329</a>            file_name_gen,
-<a href=#330 id=330 data-nosnippet>330</a>        );
+<a href=#229 id=229 data-nosnippet>229</a>    /// A `Result` containing a vector of `DataFileBuilder` instances representing
+<a href=#230 id=230 data-nosnippet>230</a>    /// all files that were written, including any that were created due to rollover
+<a href=#231 id=231 data-nosnippet>231</a>    </span><span class="kw">pub async fn </span>close(<span class="kw-2">mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;Vec&lt;DataFileBuilder&gt;&gt; {
+<a href=#232 id=232 data-nosnippet>232</a>        <span class="comment">// close the current writer and merge the output
+<a href=#233 id=233 data-nosnippet>233</a>        </span><span class="kw">if let </span><span class="prelude-val">Some</span>(current_writer) = <span class="self">self</span>.inner {
+<a href=#234 id=234 data-nosnippet>234</a>            <span class="self">self</span>.data_file_builders
+<a href=#235 id=235 data-nosnippet>235</a>                .extend(current_writer.close().<span class="kw">await</span><span class="question-mark">?</span>);
+<a href=#236 id=236 data-nosnippet>236</a>        }
+<a href=#237 id=237 data-nosnippet>237</a>
+<a href=#238 id=238 data-nosnippet>238</a>        <span class="prelude-val">Ok</span>(<span class="self">self</span>.data_file_builders)
+<a href=#239 id=239 data-nosnippet>239</a>    }
+<a href=#240 id=240 data-nosnippet>240</a>}
+<a href=#241 id=241 data-nosnippet>241</a>
+<a href=#242 id=242 data-nosnippet>242</a><span class="kw">impl</span>&lt;B: FileWriterBuilder, L: LocationGenerator, F: FileNameGenerator&gt; CurrentFileStatus
+<a href=#243 id=243 data-nosnippet>243</a>    <span class="kw">for </span>RollingFileWriter&lt;B, L, F&gt;
+<a href=#244 id=244 data-nosnippet>244</a>{
+<a href=#245 id=245 data-nosnippet>245</a>    <span class="kw">fn </span>current_file_path(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; String {
+<a href=#246 id=246 data-nosnippet>246</a>        <span class="self">self</span>.inner.as_ref().unwrap().current_file_path()
+<a href=#247 id=247 data-nosnippet>247</a>    }
+<a href=#248 id=248 data-nosnippet>248</a>
+<a href=#249 id=249 data-nosnippet>249</a>    <span class="kw">fn </span>current_row_num(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize {
+<a href=#250 id=250 data-nosnippet>250</a>        <span class="self">self</span>.inner.as_ref().unwrap().current_row_num()
+<a href=#251 id=251 data-nosnippet>251</a>    }
+<a href=#252 id=252 data-nosnippet>252</a>
+<a href=#253 id=253 data-nosnippet>253</a>    <span class="kw">fn </span>current_written_size(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize {
+<a href=#254 id=254 data-nosnippet>254</a>        <span class="self">self</span>.inner.as_ref().unwrap().current_written_size()
+<a href=#255 id=255 data-nosnippet>255</a>    }
+<a href=#256 id=256 data-nosnippet>256</a>}
+<a href=#257 id=257 data-nosnippet>257</a>
+<a href=#258 id=258 data-nosnippet>258</a><span class="attr">#[cfg(test)]
+<a href=#259 id=259 data-nosnippet>259</a></span><span class="kw">mod </span>tests {
+<a href=#260 id=260 data-nosnippet>260</a>    <span class="kw">use </span>std::collections::HashMap;
+<a href=#261 id=261 data-nosnippet>261</a>    <span class="kw">use </span>std::sync::Arc;
+<a href=#262 id=262 data-nosnippet>262</a>
+<a href=#263 id=263 data-nosnippet>263</a>    <span class="kw">use </span>arrow_array::{ArrayRef, Int32Array, StringArray};
+<a href=#264 id=264 data-nosnippet>264</a>    <span class="kw">use </span>arrow_schema::{DataType, Field, Schema <span class="kw">as </span>ArrowSchema};
+<a href=#265 id=265 data-nosnippet>265</a>    <span class="kw">use </span>parquet::arrow::PARQUET_FIELD_ID_META_KEY;
+<a href=#266 id=266 data-nosnippet>266</a>    <span class="kw">use </span>parquet::file::properties::WriterProperties;
+<a href=#267 id=267 data-nosnippet>267</a>    <span class="kw">use </span>rand::prelude::IteratorRandom;
+<a href=#268 id=268 data-nosnippet>268</a>    <span class="kw">use </span>tempfile::TempDir;
+<a href=#269 id=269 data-nosnippet>269</a>
+<a href=#270 id=270 data-nosnippet>270</a>    <span class="kw">use super</span>::<span class="kw-2">*</span>;
+<a href=#271 id=271 data-nosnippet>271</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIOBuilder;
+<a href=#272 id=272 data-nosnippet>272</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{DataFileFormat, NestedField, PrimitiveType, Schema, Type};
+<a href=#273 id=273 data-nosnippet>273</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::base_writer::data_file_writer::DataFileWriterBuilder;
+<a href=#274 id=274 data-nosnippet>274</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::ParquetWriterBuilder;
+<a href=#275 id=275 data-nosnippet>275</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::location_generator::{
+<a href=#276 id=276 data-nosnippet>276</a>        DefaultFileNameGenerator, DefaultLocationGenerator,
+<a href=#277 id=277 data-nosnippet>277</a>    };
+<a href=#278 id=278 data-nosnippet>278</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::tests::check_parquet_data_file;
+<a href=#279 id=279 data-nosnippet>279</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::{IcebergWriter, IcebergWriterBuilder, RecordBatch};
+<a href=#280 id=280 data-nosnippet>280</a>
+<a href=#281 id=281 data-nosnippet>281</a>    <span class="kw">fn </span>make_test_schema() -&gt; <span class="prelude-ty">Result</span>&lt;Schema&gt; {
+<a href=#282 id=282 data-nosnippet>282</a>        Schema::builder()
+<a href=#283 id=283 data-nosnippet>283</a>            .with_schema_id(<span class="number">1</span>)
+<a href=#284 id=284 data-nosnippet>284</a>            .with_fields(<span class="macro">vec!</span>[
+<a href=#285 id=285 data-nosnippet>285</a>                NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
+<a href=#286 id=286 data-nosnippet>286</a>                NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
+<a href=#287 id=287 data-nosnippet>287</a>            ])
+<a href=#288 id=288 data-nosnippet>288</a>            .build()
+<a href=#289 id=289 data-nosnippet>289</a>    }
+<a href=#290 id=290 data-nosnippet>290</a>
+<a href=#291 id=291 data-nosnippet>291</a>    <span class="kw">fn </span>make_test_arrow_schema() -&gt; ArrowSchema {
+<a href=#292 id=292 data-nosnippet>292</a>        ArrowSchema::new(<span class="macro">vec!</span>[
+<a href=#293 id=293 data-nosnippet>293</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#294 id=294 data-nosnippet>294</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#295 id=295 data-nosnippet>295</a>                <span class="number">1</span>.to_string(),
+<a href=#296 id=296 data-nosnippet>296</a>            )])),
+<a href=#297 id=297 data-nosnippet>297</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#298 id=298 data-nosnippet>298</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#299 id=299 data-nosnippet>299</a>                <span class="number">2</span>.to_string(),
+<a href=#300 id=300 data-nosnippet>300</a>            )])),
+<a href=#301 id=301 data-nosnippet>301</a>        ])
+<a href=#302 id=302 data-nosnippet>302</a>    }
+<a href=#303 id=303 data-nosnippet>303</a>
+<a href=#304 id=304 data-nosnippet>304</a>    <span class="attr">#[tokio::test]
+<a href=#305 id=305 data-nosnippet>305</a>    </span><span class="kw">async fn </span>test_rolling_writer_basic() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#306 id=306 data-nosnippet>306</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
+<a href=#307 id=307 data-nosnippet>307</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
+<a href=#308 id=308 data-nosnippet>308</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
+<a href=#309 id=309 data-nosnippet>309</a>            temp_dir.path().to_str().unwrap().to_string(),
+<a href=#310 id=310 data-nosnippet>310</a>        );
+<a href=#311 id=311 data-nosnippet>311</a>        <span class="kw">let </span>file_name_gen =
+<a href=#312 id=312 data-nosnippet>312</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
+<a href=#313 id=313 data-nosnippet>313</a>
+<a href=#314 id=314 data-nosnippet>314</a>        <span class="comment">// Create schema
+<a href=#315 id=315 data-nosnippet>315</a>        </span><span class="kw">let </span>schema = make_test_schema()<span class="question-mark">?</span>;
+<a href=#316 id=316 data-nosnippet>316</a>
+<a href=#317 id=317 data-nosnippet>317</a>        <span class="comment">// Create writer builders
+<a href=#318 id=318 data-nosnippet>318</a>        </span><span class="kw">let </span>parquet_writer_builder =
+<a href=#319 id=319 data-nosnippet>319</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), Arc::new(schema));
+<a href=#320 id=320 data-nosnippet>320</a>
+<a href=#321 id=321 data-nosnippet>321</a>        <span class="comment">// Set a large target size so no rolling occurs
+<a href=#322 id=322 data-nosnippet>322</a>        </span><span class="kw">let </span>rolling_file_writer_builder = RollingFileWriterBuilder::new(
+<a href=#323 id=323 data-nosnippet>323</a>            parquet_writer_builder,
+<a href=#324 id=324 data-nosnippet>324</a>            <span class="number">1024 </span>* <span class="number">1024</span>,
+<a href=#325 id=325 data-nosnippet>325</a>            file_io.clone(),
+<a href=#326 id=326 data-nosnippet>326</a>            location_gen,
+<a href=#327 id=327 data-nosnippet>327</a>            file_name_gen,
+<a href=#328 id=328 data-nosnippet>328</a>        );
+<a href=#329 id=329 data-nosnippet>329</a>
+<a href=#330 id=330 data-nosnippet>330</a>        <span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_file_writer_builder);
 <a href=#331 id=331 data-nosnippet>331</a>
-<a href=#332 id=332 data-nosnippet>332</a>        <span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_file_writer_builder);
-<a href=#333 id=333 data-nosnippet>333</a>
-<a href=#334 id=334 data-nosnippet>334</a>        <span class="comment">// Create writer
-<a href=#335 id=335 data-nosnippet>335</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = data_file_writer_builder.build(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#336 id=336 data-nosnippet>336</a>
-<a href=#337 id=337 data-nosnippet>337</a>        <span class="comment">// Create test data
-<a href=#338 id=338 data-nosnippet>338</a>        </span><span class="kw">let </span>arrow_schema = make_test_arrow_schema();
-<a href=#339 id=339 data-nosnippet>339</a>
-<a href=#340 id=340 data-nosnippet>340</a>        <span class="kw">let </span>batch = RecordBatch::try_new(Arc::new(arrow_schema), <span class="macro">vec!</span>[
-<a href=#341 id=341 data-nosnippet>341</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>])),
-<a href=#342 id=342 data-nosnippet>342</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>, <span class="string">"Charlie"</span>])),
-<a href=#343 id=343 data-nosnippet>343</a>        ])<span class="question-mark">?</span>;
-<a href=#344 id=344 data-nosnippet>344</a>
-<a href=#345 id=345 data-nosnippet>345</a>        <span class="comment">// Write data
-<a href=#346 id=346 data-nosnippet>346</a>        </span>writer.write(batch.clone()).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#347 id=347 data-nosnippet>347</a>
-<a href=#348 id=348 data-nosnippet>348</a>        <span class="comment">// Close writer and get data files
-<a href=#349 id=349 data-nosnippet>349</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#350 id=350 data-nosnippet>350</a>
-<a href=#351 id=351 data-nosnippet>351</a>        <span class="comment">// Verify only one file was created
-<a href=#352 id=352 data-nosnippet>352</a>        </span><span class="macro">assert_eq!</span>(
-<a href=#353 id=353 data-nosnippet>353</a>            data_files.len(),
-<a href=#354 id=354 data-nosnippet>354</a>            <span class="number">1</span>,
-<a href=#355 id=355 data-nosnippet>355</a>            <span class="string">"Expected only one data file to be created"
-<a href=#356 id=356 data-nosnippet>356</a>        </span>);
-<a href=#357 id=357 data-nosnippet>357</a>
-<a href=#358 id=358 data-nosnippet>358</a>        <span class="comment">// Verify file content
-<a href=#359 id=359 data-nosnippet>359</a>        </span>check_parquet_data_file(<span class="kw-2">&amp;</span>file_io, <span class="kw-2">&amp;</span>data_files[<span class="number">0</span>], <span class="kw-2">&amp;</span>batch).<span class="kw">await</span>;
-<a href=#360 id=360 data-nosnippet>360</a>
-<a href=#361 id=361 data-nosnippet>361</a>        <span class="prelude-val">Ok</span>(())
-<a href=#362 id=362 data-nosnippet>362</a>    }
-<a href=#363 id=363 data-nosnippet>363</a>
-<a href=#364 id=364 data-nosnippet>364</a>    <span class="attr">#[tokio::test]
-<a href=#365 id=365 data-nosnippet>365</a>    </span><span class="kw">async fn </span>test_rolling_writer_with_rolling() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#366 id=366 data-nosnippet>366</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
-<a href=#367 id=367 data-nosnippet>367</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
-<a href=#368 id=368 data-nosnippet>368</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
-<a href=#369 id=369 data-nosnippet>369</a>            temp_dir.path().to_str().unwrap().to_string(),
-<a href=#370 id=370 data-nosnippet>370</a>        );
-<a href=#371 id=371 data-nosnippet>371</a>        <span class="kw">let </span>file_name_gen =
-<a href=#372 id=372 data-nosnippet>372</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
-<a href=#373 id=373 data-nosnippet>373</a>
-<a href=#374 id=374 data-nosnippet>374</a>        <span class="comment">// Create schema
-<a href=#375 id=375 data-nosnippet>375</a>        </span><span class="kw">let </span>schema = make_test_schema()<span class="question-mark">?</span>;
-<a href=#376 id=376 data-nosnippet>376</a>
-<a href=#377 id=377 data-nosnippet>377</a>        <span class="comment">// Create writer builders
-<a href=#378 id=378 data-nosnippet>378</a>        </span><span class="kw">let </span>parquet_writer_builder =
-<a href=#379 id=379 data-nosnippet>379</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), Arc::new(schema));
-<a href=#380 id=380 data-nosnippet>380</a>
-<a href=#381 id=381 data-nosnippet>381</a>        <span class="comment">// Set a very small target size to trigger rolling
-<a href=#382 id=382 data-nosnippet>382</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new(
-<a href=#383 id=383 data-nosnippet>383</a>            parquet_writer_builder,
-<a href=#384 id=384 data-nosnippet>384</a>            <span class="number">1024</span>,
-<a href=#385 id=385 data-nosnippet>385</a>            file_io,
-<a href=#386 id=386 data-nosnippet>386</a>            location_gen,
-<a href=#387 id=387 data-nosnippet>387</a>            file_name_gen,
-<a href=#388 id=388 data-nosnippet>388</a>        );
+<a href=#332 id=332 data-nosnippet>332</a>        <span class="comment">// Create writer
+<a href=#333 id=333 data-nosnippet>333</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = data_file_writer_builder.build(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#334 id=334 data-nosnippet>334</a>
+<a href=#335 id=335 data-nosnippet>335</a>        <span class="comment">// Create test data
+<a href=#336 id=336 data-nosnippet>336</a>        </span><span class="kw">let </span>arrow_schema = make_test_arrow_schema();
+<a href=#337 id=337 data-nosnippet>337</a>
+<a href=#338 id=338 data-nosnippet>338</a>        <span class="kw">let </span>batch = RecordBatch::try_new(Arc::new(arrow_schema), <span class="macro">vec!</span>[
+<a href=#339 id=339 data-nosnippet>339</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>])),
+<a href=#340 id=340 data-nosnippet>340</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>, <span class="string">"Charlie"</span>])),
+<a href=#341 id=341 data-nosnippet>341</a>        ])<span class="question-mark">?</span>;
+<a href=#342 id=342 data-nosnippet>342</a>
+<a href=#343 id=343 data-nosnippet>343</a>        <span class="comment">// Write data
+<a href=#344 id=344 data-nosnippet>344</a>        </span>writer.write(batch.clone()).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#345 id=345 data-nosnippet>345</a>
+<a href=#346 id=346 data-nosnippet>346</a>        <span class="comment">// Close writer and get data files
+<a href=#347 id=347 data-nosnippet>347</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#348 id=348 data-nosnippet>348</a>
+<a href=#349 id=349 data-nosnippet>349</a>        <span class="comment">// Verify only one file was created
+<a href=#350 id=350 data-nosnippet>350</a>        </span><span class="macro">assert_eq!</span>(
+<a href=#351 id=351 data-nosnippet>351</a>            data_files.len(),
+<a href=#352 id=352 data-nosnippet>352</a>            <span class="number">1</span>,
+<a href=#353 id=353 data-nosnippet>353</a>            <span class="string">"Expected only one data file to be created"
+<a href=#354 id=354 data-nosnippet>354</a>        </span>);
+<a href=#355 id=355 data-nosnippet>355</a>
+<a href=#356 id=356 data-nosnippet>356</a>        <span class="comment">// Verify file content
+<a href=#357 id=357 data-nosnippet>357</a>        </span>check_parquet_data_file(<span class="kw-2">&amp;</span>file_io, <span class="kw-2">&amp;</span>data_files[<span class="number">0</span>], <span class="kw-2">&amp;</span>batch).<span class="kw">await</span>;
+<a href=#358 id=358 data-nosnippet>358</a>
+<a href=#359 id=359 data-nosnippet>359</a>        <span class="prelude-val">Ok</span>(())
+<a href=#360 id=360 data-nosnippet>360</a>    }
+<a href=#361 id=361 data-nosnippet>361</a>
+<a href=#362 id=362 data-nosnippet>362</a>    <span class="attr">#[tokio::test]
+<a href=#363 id=363 data-nosnippet>363</a>    </span><span class="kw">async fn </span>test_rolling_writer_with_rolling() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#364 id=364 data-nosnippet>364</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
+<a href=#365 id=365 data-nosnippet>365</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
+<a href=#366 id=366 data-nosnippet>366</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
+<a href=#367 id=367 data-nosnippet>367</a>            temp_dir.path().to_str().unwrap().to_string(),
+<a href=#368 id=368 data-nosnippet>368</a>        );
+<a href=#369 id=369 data-nosnippet>369</a>        <span class="kw">let </span>file_name_gen =
+<a href=#370 id=370 data-nosnippet>370</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
+<a href=#371 id=371 data-nosnippet>371</a>
+<a href=#372 id=372 data-nosnippet>372</a>        <span class="comment">// Create schema
+<a href=#373 id=373 data-nosnippet>373</a>        </span><span class="kw">let </span>schema = make_test_schema()<span class="question-mark">?</span>;
+<a href=#374 id=374 data-nosnippet>374</a>
+<a href=#375 id=375 data-nosnippet>375</a>        <span class="comment">// Create writer builders
+<a href=#376 id=376 data-nosnippet>376</a>        </span><span class="kw">let </span>parquet_writer_builder =
+<a href=#377 id=377 data-nosnippet>377</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), Arc::new(schema));
+<a href=#378 id=378 data-nosnippet>378</a>
+<a href=#379 id=379 data-nosnippet>379</a>        <span class="comment">// Set a very small target size to trigger rolling
+<a href=#380 id=380 data-nosnippet>380</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new(
+<a href=#381 id=381 data-nosnippet>381</a>            parquet_writer_builder,
+<a href=#382 id=382 data-nosnippet>382</a>            <span class="number">1024</span>,
+<a href=#383 id=383 data-nosnippet>383</a>            file_io,
+<a href=#384 id=384 data-nosnippet>384</a>            location_gen,
+<a href=#385 id=385 data-nosnippet>385</a>            file_name_gen,
+<a href=#386 id=386 data-nosnippet>386</a>        );
+<a href=#387 id=387 data-nosnippet>387</a>
+<a href=#388 id=388 data-nosnippet>388</a>        <span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
 <a href=#389 id=389 data-nosnippet>389</a>
-<a href=#390 id=390 data-nosnippet>390</a>        <span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
-<a href=#391 id=391 data-nosnippet>391</a>
-<a href=#392 id=392 data-nosnippet>392</a>        <span class="comment">// Create writer
-<a href=#393 id=393 data-nosnippet>393</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = data_file_writer_builder.build(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#394 id=394 data-nosnippet>394</a>
-<a href=#395 id=395 data-nosnippet>395</a>        <span class="comment">// Create test data
-<a href=#396 id=396 data-nosnippet>396</a>        </span><span class="kw">let </span>arrow_schema = make_test_arrow_schema();
-<a href=#397 id=397 data-nosnippet>397</a>        <span class="kw">let </span>arrow_schema_ref = Arc::new(arrow_schema.clone());
-<a href=#398 id=398 data-nosnippet>398</a>
-<a href=#399 id=399 data-nosnippet>399</a>        <span class="kw">let </span>names = <span class="macro">vec!</span>[
-<a href=#400 id=400 data-nosnippet>400</a>            <span class="string">"Alice"</span>, <span class="string">"Bob"</span>, <span class="string">"Charlie"</span>, <span class="string">"Dave"</span>, <span class="string">"Eve"</span>, <span class="string">"Frank"</span>, <span class="string">"Grace"</span>, <span class="string">"Heidi"</span>, <span class="string">"Ivan"</span>, <span class="string">"Judy"</span>,
-<a href=#401 id=401 data-nosnippet>401</a>            <span class="string">"Kelly"</span>, <span class="string">"Larry"</span>, <span class="string">"Mallory"</span>, <span class="string">"Shawn"</span>,
-<a href=#402 id=402 data-nosnippet>402</a>        ];
-<a href=#403 id=403 data-nosnippet>403</a>
-<a href=#404 id=404 data-nosnippet>404</a>        <span class="kw">let </span><span class="kw-2">mut </span>rng = rand::thread_rng();
-<a href=#405 id=405 data-nosnippet>405</a>        <span class="kw">let </span>batch_num = <span class="number">10</span>;
-<a href=#406 id=406 data-nosnippet>406</a>        <span class="kw">let </span>batch_rows = <span class="number">100</span>;
-<a href=#407 id=407 data-nosnippet>407</a>        <span class="kw">let </span>expected_rows = batch_num * batch_rows;
-<a href=#408 id=408 data-nosnippet>408</a>
-<a href=#409 id=409 data-nosnippet>409</a>        <span class="kw">for </span>i <span class="kw">in </span><span class="number">0</span>..batch_num {
-<a href=#410 id=410 data-nosnippet>410</a>            <span class="kw">let </span>int_values: Vec&lt;i32&gt; = (<span class="number">0</span>..batch_rows).map(|row| i * batch_rows + row).collect();
-<a href=#411 id=411 data-nosnippet>411</a>            <span class="kw">let </span>str_values: Vec&lt;<span class="kw-2">&amp;</span>str&gt; = (<span class="number">0</span>..batch_rows)
-<a href=#412 id=412 data-nosnippet>412</a>                .map(|<span class="kw">_</span>| <span class="kw-2">*</span>names.iter().choose(<span class="kw-2">&amp;mut </span>rng).unwrap())
-<a href=#413 id=413 data-nosnippet>413</a>                .collect();
-<a href=#414 id=414 data-nosnippet>414</a>
-<a href=#415 id=415 data-nosnippet>415</a>            <span class="kw">let </span>int_array = Arc::new(Int32Array::from(int_values)) <span class="kw">as </span>ArrayRef;
-<a href=#416 id=416 data-nosnippet>416</a>            <span class="kw">let </span>str_array = Arc::new(StringArray::from(str_values)) <span class="kw">as </span>ArrayRef;
-<a href=#417 id=417 data-nosnippet>417</a>
-<a href=#418 id=418 data-nosnippet>418</a>            <span class="kw">let </span>batch =
-<a href=#419 id=419 data-nosnippet>419</a>                RecordBatch::try_new(Arc::clone(<span class="kw-2">&amp;</span>arrow_schema_ref), <span class="macro">vec!</span>[int_array, str_array])
-<a href=#420 id=420 data-nosnippet>420</a>                    .expect(<span class="string">"Failed to create RecordBatch"</span>);
-<a href=#421 id=421 data-nosnippet>421</a>
-<a href=#422 id=422 data-nosnippet>422</a>            writer.write(batch).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#423 id=423 data-nosnippet>423</a>        }
-<a href=#424 id=424 data-nosnippet>424</a>
-<a href=#425 id=425 data-nosnippet>425</a>        <span class="comment">// Close writer and get data files
-<a href=#426 id=426 data-nosnippet>426</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#427 id=427 data-nosnippet>427</a>
-<a href=#428 id=428 data-nosnippet>428</a>        <span class="comment">// Verify multiple files were created (at least 4)
-<a href=#429 id=429 data-nosnippet>429</a>        </span><span class="macro">assert!</span>(
-<a href=#430 id=430 data-nosnippet>430</a>            data_files.len() &gt; <span class="number">4</span>,
-<a href=#431 id=431 data-nosnippet>431</a>            <span class="string">"Expected at least 4 data files to be created, but got {}"</span>,
-<a href=#432 id=432 data-nosnippet>432</a>            data_files.len()
-<a href=#433 id=433 data-nosnippet>433</a>        );
-<a href=#434 id=434 data-nosnippet>434</a>
-<a href=#435 id=435 data-nosnippet>435</a>        <span class="comment">// Verify total record count across all files
-<a href=#436 id=436 data-nosnippet>436</a>        </span><span class="kw">let </span>total_records: u64 = data_files.iter().map(|file| file.record_count).sum();
-<a href=#437 id=437 data-nosnippet>437</a>        <span class="macro">assert_eq!</span>(
-<a href=#438 id=438 data-nosnippet>438</a>            total_records, expected_rows <span class="kw">as </span>u64,
-<a href=#439 id=439 data-nosnippet>439</a>            <span class="string">"Expected {expected_rows} total records across all files"
-<a href=#440 id=440 data-nosnippet>440</a>        </span>);
-<a href=#441 id=441 data-nosnippet>441</a>
-<a href=#442 id=442 data-nosnippet>442</a>        <span class="prelude-val">Ok</span>(())
-<a href=#443 id=443 data-nosnippet>443</a>    }
-<a href=#444 id=444 data-nosnippet>444</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
+<a href=#390 id=390 data-nosnippet>390</a>        <span class="comment">// Create writer
+<a href=#391 id=391 data-nosnippet>391</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = data_file_writer_builder.build(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#392 id=392 data-nosnippet>392</a>
+<a href=#393 id=393 data-nosnippet>393</a>        <span class="comment">// Create test data
+<a href=#394 id=394 data-nosnippet>394</a>        </span><span class="kw">let </span>arrow_schema = make_test_arrow_schema();
+<a href=#395 id=395 data-nosnippet>395</a>        <span class="kw">let </span>arrow_schema_ref = Arc::new(arrow_schema.clone());
+<a href=#396 id=396 data-nosnippet>396</a>
+<a href=#397 id=397 data-nosnippet>397</a>        <span class="kw">let </span>names = <span class="macro">vec!</span>[
+<a href=#398 id=398 data-nosnippet>398</a>            <span class="string">"Alice"</span>, <span class="string">"Bob"</span>, <span class="string">"Charlie"</span>, <span class="string">"Dave"</span>, <span class="string">"Eve"</span>, <span class="string">"Frank"</span>, <span class="string">"Grace"</span>, <span class="string">"Heidi"</span>, <span class="string">"Ivan"</span>, <span class="string">"Judy"</span>,
+<a href=#399 id=399 data-nosnippet>399</a>            <span class="string">"Kelly"</span>, <span class="string">"Larry"</span>, <span class="string">"Mallory"</span>, <span class="string">"Shawn"</span>,
+<a href=#400 id=400 data-nosnippet>400</a>        ];
+<a href=#401 id=401 data-nosnippet>401</a>
+<a href=#402 id=402 data-nosnippet>402</a>        <span class="kw">let </span><span class="kw-2">mut </span>rng = rand::thread_rng();
+<a href=#403 id=403 data-nosnippet>403</a>        <span class="kw">let </span>batch_num = <span class="number">10</span>;
+<a href=#404 id=404 data-nosnippet>404</a>        <span class="kw">let </span>batch_rows = <span class="number">100</span>;
+<a href=#405 id=405 data-nosnippet>405</a>        <span class="kw">let </span>expected_rows = batch_num * batch_rows;
+<a href=#406 id=406 data-nosnippet>406</a>
+<a href=#407 id=407 data-nosnippet>407</a>        <span class="kw">for </span>i <span class="kw">in </span><span class="number">0</span>..batch_num {
+<a href=#408 id=408 data-nosnippet>408</a>            <span class="kw">let </span>int_values: Vec&lt;i32&gt; = (<span class="number">0</span>..batch_rows).map(|row| i * batch_rows + row).collect();
+<a href=#409 id=409 data-nosnippet>409</a>            <span class="kw">let </span>str_values: Vec&lt;<span class="kw-2">&amp;</span>str&gt; = (<span class="number">0</span>..batch_rows)
+<a href=#410 id=410 data-nosnippet>410</a>                .map(|<span class="kw">_</span>| <span class="kw-2">*</span>names.iter().choose(<span class="kw-2">&amp;mut </span>rng).unwrap())
+<a href=#411 id=411 data-nosnippet>411</a>                .collect();
+<a href=#412 id=412 data-nosnippet>412</a>
+<a href=#413 id=413 data-nosnippet>413</a>            <span class="kw">let </span>int_array = Arc::new(Int32Array::from(int_values)) <span class="kw">as </span>ArrayRef;
+<a href=#414 id=414 data-nosnippet>414</a>            <span class="kw">let </span>str_array = Arc::new(StringArray::from(str_values)) <span class="kw">as </span>ArrayRef;
+<a href=#415 id=415 data-nosnippet>415</a>
+<a href=#416 id=416 data-nosnippet>416</a>            <span class="kw">let </span>batch =
+<a href=#417 id=417 data-nosnippet>417</a>                RecordBatch::try_new(Arc::clone(<span class="kw-2">&amp;</span>arrow_schema_ref), <span class="macro">vec!</span>[int_array, str_array])
+<a href=#418 id=418 data-nosnippet>418</a>                    .expect(<span class="string">"Failed to create RecordBatch"</span>);
+<a href=#419 id=419 data-nosnippet>419</a>
+<a href=#420 id=420 data-nosnippet>420</a>            writer.write(batch).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#421 id=421 data-nosnippet>421</a>        }
+<a href=#422 id=422 data-nosnippet>422</a>
+<a href=#423 id=423 data-nosnippet>423</a>        <span class="comment">// Close writer and get data files
+<a href=#424 id=424 data-nosnippet>424</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#425 id=425 data-nosnippet>425</a>
+<a href=#426 id=426 data-nosnippet>426</a>        <span class="comment">// Verify multiple files were created (at least 4)
+<a href=#427 id=427 data-nosnippet>427</a>        </span><span class="macro">assert!</span>(
+<a href=#428 id=428 data-nosnippet>428</a>            data_files.len() &gt; <span class="number">4</span>,
+<a href=#429 id=429 data-nosnippet>429</a>            <span class="string">"Expected at least 4 data files to be created, but got {}"</span>,
+<a href=#430 id=430 data-nosnippet>430</a>            data_files.len()
+<a href=#431 id=431 data-nosnippet>431</a>        );
+<a href=#432 id=432 data-nosnippet>432</a>
+<a href=#433 id=433 data-nosnippet>433</a>        <span class="comment">// Verify total record count across all files
+<a href=#434 id=434 data-nosnippet>434</a>        </span><span class="kw">let </span>total_records: u64 = data_files.iter().map(|file| file.record_count).sum();
+<a href=#435 id=435 data-nosnippet>435</a>        <span class="macro">assert_eq!</span>(
+<a href=#436 id=436 data-nosnippet>436</a>            total_records, expected_rows <span class="kw">as </span>u64,
+<a href=#437 id=437 data-nosnippet>437</a>            <span class="string">"Expected {expected_rows} total records across all files"
+<a href=#438 id=438 data-nosnippet>438</a>        </span>);
+<a href=#439 id=439 data-nosnippet>439</a>
+<a href=#440 id=440 data-nosnippet>440</a>        <span class="prelude-val">Ok</span>(())
+<a href=#441 id=441 data-nosnippet>441</a>    }
+<a href=#442 id=442 data-nosnippet>442</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
diff --git a/api/src/iceberg/writer/mod.rs.html b/api/src/iceberg/writer/mod.rs.html
index b7447fdff..2f8147cb5 100644
--- a/api/src/iceberg/writer/mod.rs.html
+++ b/api/src/iceberg/writer/mod.rs.html
@@ -148,7 +148,7 @@
 <a href=#148 id=148 data-nosnippet>148</a>//! impl&lt;B: IcebergWriterBuilder&gt; IcebergWriterBuilder for LatencyRecordWriterBuilder&lt;B&gt; {
 <a href=#149 id=149 data-nosnippet>149</a>//!     type R = LatencyRecordWriter&lt;B::R&gt;;
 <a href=#150 id=150 data-nosnippet>150</a>//!
-<a href=#151 id=151 data-nosnippet>151</a>//!     async fn build(self, partition_key: Option&lt;PartitionKey&gt;) -&gt; Result&lt;Self::R&gt; {
+<a href=#151 id=151 data-nosnippet>151</a>//!     async fn build(&amp;self, partition_key: Option&lt;PartitionKey&gt;) -&gt; Result&lt;Self::R&gt; {
 <a href=#152 id=152 data-nosnippet>152</a>//!         Ok(LatencyRecordWriter {
 <a href=#153 id=153 data-nosnippet>153</a>//!             inner_writer: self.inner_writer_builder.build(partition_key).await?,
 <a href=#154 id=154 data-nosnippet>154</a>//!         })
@@ -398,77 +398,75 @@
 <a href=#398 id=398 data-nosnippet>398</a>
 <a href=#399 id=399 data-nosnippet>399</a><span class="doccomment">/// The builder for iceberg writer.
 <a href=#400 id=400 data-nosnippet>400</a></span><span class="attr">#[async_trait::async_trait]
-<a href=#401 id=401 data-nosnippet>401</a></span><span class="kw">pub trait </span>IcebergWriterBuilder&lt;I = DefaultInput, O = DefaultOutput&gt;:
-<a href=#402 id=402 data-nosnippet>402</a>    Send + Clone + <span class="lifetime">'static
-<a href=#403 id=403 data-nosnippet>403</a></span>{
-<a href=#404 id=404 data-nosnippet>404</a>    <span class="doccomment">/// The associated writer type.
-<a href=#405 id=405 data-nosnippet>405</a>    </span><span class="kw">type </span>R: IcebergWriter&lt;I, O&gt;;
-<a href=#406 id=406 data-nosnippet>406</a>    <span class="doccomment">/// Build the iceberg writer with an optional partition key.
-<a href=#407 id=407 data-nosnippet>407</a>    </span><span class="kw">async fn </span>build(<span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt;;
-<a href=#408 id=408 data-nosnippet>408</a>}
-<a href=#409 id=409 data-nosnippet>409</a>
-<a href=#410 id=410 data-nosnippet>410</a><span class="doccomment">/// The iceberg writer used to write data to iceberg table.
-<a href=#411 id=411 data-nosnippet>411</a></span><span class="attr">#[async_trait::async_trait]
-<a href=#412 id=412 data-nosnippet>412</a></span><span class="kw">pub trait </span>IcebergWriter&lt;I = DefaultInput, O = DefaultOutput&gt;: Send + <span class="lifetime">'static </span>{
-<a href=#413 id=413 data-nosnippet>413</a>    <span class="doccomment">/// Write data to iceberg table.
-<a href=#414 id=414 data-nosnippet>414</a>    </span><span class="kw">async fn </span>write(<span class="kw-2">&amp;mut </span><span class="self">self</span>, input: I) -&gt; <span class="prelude-ty">Result</span>&lt;()&gt;;
-<a href=#415 id=415 data-nosnippet>415</a>    <span class="doccomment">/// Close the writer and return the written data files.
-<a href=#416 id=416 data-nosnippet>416</a>    /// If close failed, the data written before maybe be lost. User may need to recreate the writer and rewrite the data again.
-<a href=#417 id=417 data-nosnippet>417</a>    /// # NOTE
-<a href=#418 id=418 data-nosnippet>418</a>    /// After close, regardless of success or failure, the writer should never be used again, otherwise the writer will panic.
-<a href=#419 id=419 data-nosnippet>419</a>    </span><span class="kw">async fn </span>close(<span class="kw-2">&amp;mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;O&gt;;
-<a href=#420 id=420 data-nosnippet>420</a>}
-<a href=#421 id=421 data-nosnippet>421</a>
-<a href=#422 id=422 data-nosnippet>422</a><span class="doccomment">/// The current file status of the Iceberg writer.
-<a href=#423 id=423 data-nosnippet>423</a>/// This is implemented for writers that write a single file at a time.
-<a href=#424 id=424 data-nosnippet>424</a></span><span class="kw">pub trait </span>CurrentFileStatus {
-<a href=#425 id=425 data-nosnippet>425</a>    <span class="doccomment">/// Get the current file path.
-<a href=#426 id=426 data-nosnippet>426</a>    </span><span class="kw">fn </span>current_file_path(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; String;
-<a href=#427 id=427 data-nosnippet>427</a>    <span class="doccomment">/// Get the current file row number.
-<a href=#428 id=428 data-nosnippet>428</a>    </span><span class="kw">fn </span>current_row_num(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize;
-<a href=#429 id=429 data-nosnippet>429</a>    <span class="doccomment">/// Get the current file written size.
-<a href=#430 id=430 data-nosnippet>430</a>    </span><span class="kw">fn </span>current_written_size(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize;
-<a href=#431 id=431 data-nosnippet>431</a>}
-<a href=#432 id=432 data-nosnippet>432</a>
-<a href=#433 id=433 data-nosnippet>433</a><span class="attr">#[cfg(test)]
-<a href=#434 id=434 data-nosnippet>434</a></span><span class="kw">mod </span>tests {
-<a href=#435 id=435 data-nosnippet>435</a>    <span class="kw">use </span>arrow_array::RecordBatch;
-<a href=#436 id=436 data-nosnippet>436</a>    <span class="kw">use </span>arrow_schema::Schema;
-<a href=#437 id=437 data-nosnippet>437</a>    <span class="kw">use </span>arrow_select::concat::concat_batches;
-<a href=#438 id=438 data-nosnippet>438</a>    <span class="kw">use </span>parquet::arrow::arrow_reader::ParquetRecordBatchReaderBuilder;
-<a href=#439 id=439 data-nosnippet>439</a>
-<a href=#440 id=440 data-nosnippet>440</a>    <span class="kw">use </span><span class="kw">super</span>::IcebergWriter;
-<a href=#441 id=441 data-nosnippet>441</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIO;
-<a href=#442 id=442 data-nosnippet>442</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{DataFile, DataFileFormat};
-<a href=#443 id=443 data-nosnippet>443</a>
-<a href=#444 id=444 data-nosnippet>444</a>    <span class="comment">// This function is used to guarantee the trait can be used as an object safe trait.
-<a href=#445 id=445 data-nosnippet>445</a>    </span><span class="kw">async fn </span>_guarantee_object_safe(<span class="kw-2">mut </span>w: Box&lt;<span class="kw">dyn </span>IcebergWriter&gt;) {
-<a href=#446 id=446 data-nosnippet>446</a>        <span class="kw">let _ </span>= w
-<a href=#447 id=447 data-nosnippet>447</a>            .write(RecordBatch::new_empty(Schema::empty().into()))
-<a href=#448 id=448 data-nosnippet>448</a>            .<span class="kw">await</span>;
-<a href=#449 id=449 data-nosnippet>449</a>        <span class="kw">let _ </span>= w.close().<span class="kw">await</span>;
-<a href=#450 id=450 data-nosnippet>450</a>    }
-<a href=#451 id=451 data-nosnippet>451</a>
-<a href=#452 id=452 data-nosnippet>452</a>    <span class="comment">// This function check:
-<a href=#453 id=453 data-nosnippet>453</a>    // The data of the written parquet file is correct.
-<a href=#454 id=454 data-nosnippet>454</a>    // The metadata of the data file is consistent with the written parquet file.
-<a href=#455 id=455 data-nosnippet>455</a>    </span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">async fn </span>check_parquet_data_file(
-<a href=#456 id=456 data-nosnippet>456</a>        file_io: <span class="kw-2">&amp;</span>FileIO,
-<a href=#457 id=457 data-nosnippet>457</a>        data_file: <span class="kw-2">&amp;</span>DataFile,
-<a href=#458 id=458 data-nosnippet>458</a>        batch: <span class="kw-2">&amp;</span>RecordBatch,
-<a href=#459 id=459 data-nosnippet>459</a>    ) {
-<a href=#460 id=460 data-nosnippet>460</a>        <span class="macro">assert_eq!</span>(data_file.file_format, DataFileFormat::Parquet);
-<a href=#461 id=461 data-nosnippet>461</a>
-<a href=#462 id=462 data-nosnippet>462</a>        <span class="kw">let </span>input_file = file_io.new_input(data_file.file_path.clone()).unwrap();
-<a href=#463 id=463 data-nosnippet>463</a>        <span class="comment">// read the written file
-<a href=#464 id=464 data-nosnippet>464</a>        </span><span class="kw">let </span>input_content = input_file.read().<span class="kw">await</span>.unwrap();
-<a href=#465 id=465 data-nosnippet>465</a>        <span class="kw">let </span>reader_builder =
-<a href=#466 id=466 data-nosnippet>466</a>            ParquetRecordBatchReaderBuilder::try_new(input_content.clone()).unwrap();
-<a href=#467 id=467 data-nosnippet>467</a>
-<a href=#468 id=468 data-nosnippet>468</a>        <span class="comment">// check data
-<a href=#469 id=469 data-nosnippet>469</a>        </span><span class="kw">let </span>reader = reader_builder.build().unwrap();
-<a href=#470 id=470 data-nosnippet>470</a>        <span class="kw">let </span>batches = reader.map(|batch| batch.unwrap()).collect::&lt;Vec&lt;<span class="kw">_</span>&gt;&gt;();
-<a href=#471 id=471 data-nosnippet>471</a>        <span class="kw">let </span>res = concat_batches(<span class="kw-2">&amp;</span>batch.schema(), <span class="kw-2">&amp;</span>batches).unwrap();
-<a href=#472 id=472 data-nosnippet>472</a>        <span class="macro">assert_eq!</span>(<span class="kw-2">*</span>batch, res);
-<a href=#473 id=473 data-nosnippet>473</a>    }
-<a href=#474 id=474 data-nosnippet>474</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
+<a href=#401 id=401 data-nosnippet>401</a></span><span class="kw">pub trait </span>IcebergWriterBuilder&lt;I = DefaultInput, O = DefaultOutput&gt;: Send + Sync + <span class="lifetime">'static </span>{
+<a href=#402 id=402 data-nosnippet>402</a>    <span class="doccomment">/// The associated writer type.
+<a href=#403 id=403 data-nosnippet>403</a>    </span><span class="kw">type </span>R: IcebergWriter&lt;I, O&gt;;
+<a href=#404 id=404 data-nosnippet>404</a>    <span class="doccomment">/// Build the iceberg writer with an optional partition key.
+<a href=#405 id=405 data-nosnippet>405</a>    </span><span class="kw">async fn </span>build(<span class="kw-2">&amp;</span><span class="self">self</span>, partition_key: <span class="prelude-ty">Option</span>&lt;PartitionKey&gt;) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::R&gt;;
+<a href=#406 id=406 data-nosnippet>406</a>}
+<a href=#407 id=407 data-nosnippet>407</a>
+<a href=#408 id=408 data-nosnippet>408</a><span class="doccomment">/// The iceberg writer used to write data to iceberg table.
+<a href=#409 id=409 data-nosnippet>409</a></span><span class="attr">#[async_trait::async_trait]
+<a href=#410 id=410 data-nosnippet>410</a></span><span class="kw">pub trait </span>IcebergWriter&lt;I = DefaultInput, O = DefaultOutput&gt;: Send + <span class="lifetime">'static </span>{
+<a href=#411 id=411 data-nosnippet>411</a>    <span class="doccomment">/// Write data to iceberg table.
+<a href=#412 id=412 data-nosnippet>412</a>    </span><span class="kw">async fn </span>write(<span class="kw-2">&amp;mut </span><span class="self">self</span>, input: I) -&gt; <span class="prelude-ty">Result</span>&lt;()&gt;;
+<a href=#413 id=413 data-nosnippet>413</a>    <span class="doccomment">/// Close the writer and return the written data files.
+<a href=#414 id=414 data-nosnippet>414</a>    /// If close failed, the data written before maybe be lost. User may need to recreate the writer and rewrite the data again.
+<a href=#415 id=415 data-nosnippet>415</a>    /// # NOTE
+<a href=#416 id=416 data-nosnippet>416</a>    /// After close, regardless of success or failure, the writer should never be used again, otherwise the writer will panic.
+<a href=#417 id=417 data-nosnippet>417</a>    </span><span class="kw">async fn </span>close(<span class="kw-2">&amp;mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;O&gt;;
+<a href=#418 id=418 data-nosnippet>418</a>}
+<a href=#419 id=419 data-nosnippet>419</a>
+<a href=#420 id=420 data-nosnippet>420</a><span class="doccomment">/// The current file status of the Iceberg writer.
+<a href=#421 id=421 data-nosnippet>421</a>/// This is implemented for writers that write a single file at a time.
+<a href=#422 id=422 data-nosnippet>422</a></span><span class="kw">pub trait </span>CurrentFileStatus {
+<a href=#423 id=423 data-nosnippet>423</a>    <span class="doccomment">/// Get the current file path.
+<a href=#424 id=424 data-nosnippet>424</a>    </span><span class="kw">fn </span>current_file_path(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; String;
+<a href=#425 id=425 data-nosnippet>425</a>    <span class="doccomment">/// Get the current file row number.
+<a href=#426 id=426 data-nosnippet>426</a>    </span><span class="kw">fn </span>current_row_num(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize;
+<a href=#427 id=427 data-nosnippet>427</a>    <span class="doccomment">/// Get the current file written size.
+<a href=#428 id=428 data-nosnippet>428</a>    </span><span class="kw">fn </span>current_written_size(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; usize;
+<a href=#429 id=429 data-nosnippet>429</a>}
+<a href=#430 id=430 data-nosnippet>430</a>
+<a href=#431 id=431 data-nosnippet>431</a><span class="attr">#[cfg(test)]
+<a href=#432 id=432 data-nosnippet>432</a></span><span class="kw">mod </span>tests {
+<a href=#433 id=433 data-nosnippet>433</a>    <span class="kw">use </span>arrow_array::RecordBatch;
+<a href=#434 id=434 data-nosnippet>434</a>    <span class="kw">use </span>arrow_schema::Schema;
+<a href=#435 id=435 data-nosnippet>435</a>    <span class="kw">use </span>arrow_select::concat::concat_batches;
+<a href=#436 id=436 data-nosnippet>436</a>    <span class="kw">use </span>parquet::arrow::arrow_reader::ParquetRecordBatchReaderBuilder;
+<a href=#437 id=437 data-nosnippet>437</a>
+<a href=#438 id=438 data-nosnippet>438</a>    <span class="kw">use </span><span class="kw">super</span>::IcebergWriter;
+<a href=#439 id=439 data-nosnippet>439</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIO;
+<a href=#440 id=440 data-nosnippet>440</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{DataFile, DataFileFormat};
+<a href=#441 id=441 data-nosnippet>441</a>
+<a href=#442 id=442 data-nosnippet>442</a>    <span class="comment">// This function is used to guarantee the trait can be used as an object safe trait.
+<a href=#443 id=443 data-nosnippet>443</a>    </span><span class="kw">async fn </span>_guarantee_object_safe(<span class="kw-2">mut </span>w: Box&lt;<span class="kw">dyn </span>IcebergWriter&gt;) {
+<a href=#444 id=444 data-nosnippet>444</a>        <span class="kw">let _ </span>= w
+<a href=#445 id=445 data-nosnippet>445</a>            .write(RecordBatch::new_empty(Schema::empty().into()))
+<a href=#446 id=446 data-nosnippet>446</a>            .<span class="kw">await</span>;
+<a href=#447 id=447 data-nosnippet>447</a>        <span class="kw">let _ </span>= w.close().<span class="kw">await</span>;
+<a href=#448 id=448 data-nosnippet>448</a>    }
+<a href=#449 id=449 data-nosnippet>449</a>
+<a href=#450 id=450 data-nosnippet>450</a>    <span class="comment">// This function check:
+<a href=#451 id=451 data-nosnippet>451</a>    // The data of the written parquet file is correct.
+<a href=#452 id=452 data-nosnippet>452</a>    // The metadata of the data file is consistent with the written parquet file.
+<a href=#453 id=453 data-nosnippet>453</a>    </span><span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">async fn </span>check_parquet_data_file(
+<a href=#454 id=454 data-nosnippet>454</a>        file_io: <span class="kw-2">&amp;</span>FileIO,
+<a href=#455 id=455 data-nosnippet>455</a>        data_file: <span class="kw-2">&amp;</span>DataFile,
+<a href=#456 id=456 data-nosnippet>456</a>        batch: <span class="kw-2">&amp;</span>RecordBatch,
+<a href=#457 id=457 data-nosnippet>457</a>    ) {
+<a href=#458 id=458 data-nosnippet>458</a>        <span class="macro">assert_eq!</span>(data_file.file_format, DataFileFormat::Parquet);
+<a href=#459 id=459 data-nosnippet>459</a>
+<a href=#460 id=460 data-nosnippet>460</a>        <span class="kw">let </span>input_file = file_io.new_input(data_file.file_path.clone()).unwrap();
+<a href=#461 id=461 data-nosnippet>461</a>        <span class="comment">// read the written file
+<a href=#462 id=462 data-nosnippet>462</a>        </span><span class="kw">let </span>input_content = input_file.read().<span class="kw">await</span>.unwrap();
+<a href=#463 id=463 data-nosnippet>463</a>        <span class="kw">let </span>reader_builder =
+<a href=#464 id=464 data-nosnippet>464</a>            ParquetRecordBatchReaderBuilder::try_new(input_content.clone()).unwrap();
+<a href=#465 id=465 data-nosnippet>465</a>
+<a href=#466 id=466 data-nosnippet>466</a>        <span class="comment">// check data
+<a href=#467 id=467 data-nosnippet>467</a>        </span><span class="kw">let </span>reader = reader_builder.build().unwrap();
+<a href=#468 id=468 data-nosnippet>468</a>        <span class="kw">let </span>batches = reader.map(|batch| batch.unwrap()).collect::&lt;Vec&lt;<span class="kw">_</span>&gt;&gt;();
+<a href=#469 id=469 data-nosnippet>469</a>        <span class="kw">let </span>res = concat_batches(<span class="kw-2">&amp;</span>batch.schema(), <span class="kw-2">&amp;</span>batches).unwrap();
+<a href=#470 id=470 data-nosnippet>470</a>        <span class="macro">assert_eq!</span>(<span class="kw-2">*</span>batch, res);
+<a href=#471 id=471 data-nosnippet>471</a>    }
+<a href=#472 id=472 data-nosnippet>472</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
diff --git a/api/src/iceberg/writer/partitioning/clustered_writer.rs.html b/api/src/iceberg/writer/partitioning/clustered_writer.rs.html
index 729da9313..084a21c64 100644
--- a/api/src/iceberg/writer/partitioning/clustered_writer.rs.html
+++ b/api/src/iceberg/writer/partitioning/clustered_writer.rs.html
@@ -118,401 +118,400 @@
 <a href=#118 id=118 data-nosnippet>118</a>            <span class="comment">// Create a new writer for the new partition
 <a href=#119 id=119 data-nosnippet>119</a>            </span><span class="self">self</span>.current_writer = <span class="prelude-val">Some</span>(
 <a href=#120 id=120 data-nosnippet>120</a>                <span class="self">self</span>.inner_builder
-<a href=#121 id=121 data-nosnippet>121</a>                    .clone()
-<a href=#122 id=122 data-nosnippet>122</a>                    .build(<span class="prelude-val">Some</span>(partition_key.clone()))
-<a href=#123 id=123 data-nosnippet>123</a>                    .<span class="kw">await</span><span class="question-mark">?</span>,
-<a href=#124 id=124 data-nosnippet>124</a>            );
-<a href=#125 id=125 data-nosnippet>125</a>            <span class="self">self</span>.current_partition = <span class="prelude-val">Some</span>(partition_value.clone());
-<a href=#126 id=126 data-nosnippet>126</a>        }
-<a href=#127 id=127 data-nosnippet>127</a>
-<a href=#128 id=128 data-nosnippet>128</a>        <span class="comment">// do write
-<a href=#129 id=129 data-nosnippet>129</a>        </span><span class="self">self</span>.current_writer
-<a href=#130 id=130 data-nosnippet>130</a>            .as_mut()
-<a href=#131 id=131 data-nosnippet>131</a>            .expect(<span class="string">"Writer should be initialized"</span>)
-<a href=#132 id=132 data-nosnippet>132</a>            .write(input)
-<a href=#133 id=133 data-nosnippet>133</a>            .<span class="kw">await
-<a href=#134 id=134 data-nosnippet>134</a>    </span>}
-<a href=#135 id=135 data-nosnippet>135</a>
-<a href=#136 id=136 data-nosnippet>136</a>    <span class="kw">async fn </span>close(<span class="kw-2">mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;O&gt; {
-<a href=#137 id=137 data-nosnippet>137</a>        <span class="self">self</span>.close_current_writer().<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#138 id=138 data-nosnippet>138</a>
-<a href=#139 id=139 data-nosnippet>139</a>        <span class="comment">// Collect all output items into the output collection type
-<a href=#140 id=140 data-nosnippet>140</a>        </span><span class="prelude-val">Ok</span>(O::from_iter(<span class="self">self</span>.output))
-<a href=#141 id=141 data-nosnippet>141</a>    }
-<a href=#142 id=142 data-nosnippet>142</a>}
-<a href=#143 id=143 data-nosnippet>143</a>
-<a href=#144 id=144 data-nosnippet>144</a><span class="attr">#[cfg(test)]
-<a href=#145 id=145 data-nosnippet>145</a></span><span class="kw">mod </span>tests {
-<a href=#146 id=146 data-nosnippet>146</a>    <span class="kw">use </span>std::collections::HashMap;
-<a href=#147 id=147 data-nosnippet>147</a>    <span class="kw">use </span>std::sync::Arc;
-<a href=#148 id=148 data-nosnippet>148</a>
-<a href=#149 id=149 data-nosnippet>149</a>    <span class="kw">use </span>arrow_array::{Int32Array, RecordBatch, StringArray};
-<a href=#150 id=150 data-nosnippet>150</a>    <span class="kw">use </span>arrow_schema::{DataType, Field, Schema};
-<a href=#151 id=151 data-nosnippet>151</a>    <span class="kw">use </span>parquet::arrow::PARQUET_FIELD_ID_META_KEY;
-<a href=#152 id=152 data-nosnippet>152</a>    <span class="kw">use </span>parquet::file::properties::WriterProperties;
-<a href=#153 id=153 data-nosnippet>153</a>    <span class="kw">use </span>tempfile::TempDir;
-<a href=#154 id=154 data-nosnippet>154</a>
-<a href=#155 id=155 data-nosnippet>155</a>    <span class="kw">use super</span>::<span class="kw-2">*</span>;
-<a href=#156 id=156 data-nosnippet>156</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIOBuilder;
-<a href=#157 id=157 data-nosnippet>157</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{DataFileFormat, NestedField, PrimitiveType, Type};
-<a href=#158 id=158 data-nosnippet>158</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::base_writer::data_file_writer::DataFileWriterBuilder;
-<a href=#159 id=159 data-nosnippet>159</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::ParquetWriterBuilder;
-<a href=#160 id=160 data-nosnippet>160</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::location_generator::{
-<a href=#161 id=161 data-nosnippet>161</a>        DefaultFileNameGenerator, DefaultLocationGenerator,
-<a href=#162 id=162 data-nosnippet>162</a>    };
-<a href=#163 id=163 data-nosnippet>163</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::rolling_writer::RollingFileWriterBuilder;
-<a href=#164 id=164 data-nosnippet>164</a>
-<a href=#165 id=165 data-nosnippet>165</a>    <span class="attr">#[tokio::test]
-<a href=#166 id=166 data-nosnippet>166</a>    </span><span class="kw">async fn </span>test_clustered_writer_single_partition() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#167 id=167 data-nosnippet>167</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
-<a href=#168 id=168 data-nosnippet>168</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
-<a href=#169 id=169 data-nosnippet>169</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
-<a href=#170 id=170 data-nosnippet>170</a>            temp_dir.path().to_str().unwrap().to_string(),
-<a href=#171 id=171 data-nosnippet>171</a>        );
-<a href=#172 id=172 data-nosnippet>172</a>        <span class="kw">let </span>file_name_gen =
-<a href=#173 id=173 data-nosnippet>173</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
-<a href=#174 id=174 data-nosnippet>174</a>
-<a href=#175 id=175 data-nosnippet>175</a>        <span class="comment">// Create schema with partition field
-<a href=#176 id=176 data-nosnippet>176</a>        </span><span class="kw">let </span>schema = Arc::new(
-<a href=#177 id=177 data-nosnippet>177</a>            <span class="kw">crate</span>::spec::Schema::builder()
-<a href=#178 id=178 data-nosnippet>178</a>                .with_schema_id(<span class="number">1</span>)
-<a href=#179 id=179 data-nosnippet>179</a>                .with_fields(<span class="macro">vec!</span>[
-<a href=#180 id=180 data-nosnippet>180</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
-<a href=#181 id=181 data-nosnippet>181</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
-<a href=#182 id=182 data-nosnippet>182</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
-<a href=#183 id=183 data-nosnippet>183</a>                        .into(),
-<a href=#184 id=184 data-nosnippet>184</a>                ])
-<a href=#185 id=185 data-nosnippet>185</a>                .build()<span class="question-mark">?</span>,
-<a href=#186 id=186 data-nosnippet>186</a>        );
-<a href=#187 id=187 data-nosnippet>187</a>
-<a href=#188 id=188 data-nosnippet>188</a>        <span class="comment">// Create partition spec and key
-<a href=#189 id=189 data-nosnippet>189</a>        </span><span class="kw">let </span>partition_spec = <span class="kw">crate</span>::spec::PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
-<a href=#190 id=190 data-nosnippet>190</a>        <span class="kw">let </span>partition_value =
-<a href=#191 id=191 data-nosnippet>191</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"US"</span>))]);
-<a href=#192 id=192 data-nosnippet>192</a>        <span class="kw">let </span>partition_key =
-<a href=#193 id=193 data-nosnippet>193</a>            <span class="kw">crate</span>::spec::PartitionKey::new(partition_spec, schema.clone(), partition_value.clone());
-<a href=#194 id=194 data-nosnippet>194</a>
-<a href=#195 id=195 data-nosnippet>195</a>        <span class="comment">// Create writer builder
-<a href=#196 id=196 data-nosnippet>196</a>        </span><span class="kw">let </span>parquet_writer_builder =
-<a href=#197 id=197 data-nosnippet>197</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
-<a href=#198 id=198 data-nosnippet>198</a>
-<a href=#199 id=199 data-nosnippet>199</a>        <span class="comment">// Create rolling file writer builder
-<a href=#200 id=200 data-nosnippet>200</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
-<a href=#201 id=201 data-nosnippet>201</a>            parquet_writer_builder,
-<a href=#202 id=202 data-nosnippet>202</a>            file_io.clone(),
-<a href=#203 id=203 data-nosnippet>203</a>            location_gen,
-<a href=#204 id=204 data-nosnippet>204</a>            file_name_gen,
-<a href=#205 id=205 data-nosnippet>205</a>        );
-<a href=#206 id=206 data-nosnippet>206</a>
-<a href=#207 id=207 data-nosnippet>207</a>        <span class="comment">// Create data file writer builder
-<a href=#208 id=208 data-nosnippet>208</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
-<a href=#209 id=209 data-nosnippet>209</a>
-<a href=#210 id=210 data-nosnippet>210</a>        <span class="comment">// Create clustered writer
-<a href=#211 id=211 data-nosnippet>211</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = ClusteredWriter::new(data_file_writer_builder);
-<a href=#212 id=212 data-nosnippet>212</a>
-<a href=#213 id=213 data-nosnippet>213</a>        <span class="comment">// Create test data with proper field ID metadata
-<a href=#214 id=214 data-nosnippet>214</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
-<a href=#215 id=215 data-nosnippet>215</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#216 id=216 data-nosnippet>216</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#217 id=217 data-nosnippet>217</a>                <span class="number">1</span>.to_string(),
-<a href=#218 id=218 data-nosnippet>218</a>            )])),
-<a href=#219 id=219 data-nosnippet>219</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#220 id=220 data-nosnippet>220</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#221 id=221 data-nosnippet>221</a>                <span class="number">2</span>.to_string(),
-<a href=#222 id=222 data-nosnippet>222</a>            )])),
-<a href=#223 id=223 data-nosnippet>223</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#224 id=224 data-nosnippet>224</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#225 id=225 data-nosnippet>225</a>                <span class="number">3</span>.to_string(),
-<a href=#226 id=226 data-nosnippet>226</a>            )])),
-<a href=#227 id=227 data-nosnippet>227</a>        ]);
-<a href=#228 id=228 data-nosnippet>228</a>
-<a href=#229 id=229 data-nosnippet>229</a>        <span class="kw">let </span>batch1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#230 id=230 data-nosnippet>230</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
-<a href=#231 id=231 data-nosnippet>231</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
-<a href=#232 id=232 data-nosnippet>232</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
-<a href=#233 id=233 data-nosnippet>233</a>        ])<span class="question-mark">?</span>;
-<a href=#234 id=234 data-nosnippet>234</a>
-<a href=#235 id=235 data-nosnippet>235</a>        <span class="kw">let </span>batch2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#236 id=236 data-nosnippet>236</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
-<a href=#237 id=237 data-nosnippet>237</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
-<a href=#238 id=238 data-nosnippet>238</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
-<a href=#239 id=239 data-nosnippet>239</a>        ])<span class="question-mark">?</span>;
-<a href=#240 id=240 data-nosnippet>240</a>
-<a href=#241 id=241 data-nosnippet>241</a>        <span class="comment">// Write data to the same partition (this should work)
-<a href=#242 id=242 data-nosnippet>242</a>        </span>writer.write(partition_key.clone(), batch1).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#243 id=243 data-nosnippet>243</a>        writer.write(partition_key.clone(), batch2).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#244 id=244 data-nosnippet>244</a>
-<a href=#245 id=245 data-nosnippet>245</a>        <span class="comment">// Close writer and get data files
-<a href=#246 id=246 data-nosnippet>246</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#247 id=247 data-nosnippet>247</a>
-<a href=#248 id=248 data-nosnippet>248</a>        <span class="comment">// Verify at least one file was created
-<a href=#249 id=249 data-nosnippet>249</a>        </span><span class="macro">assert!</span>(
-<a href=#250 id=250 data-nosnippet>250</a>            !data_files.is_empty(),
-<a href=#251 id=251 data-nosnippet>251</a>            <span class="string">"Expected at least one data file to be created"
-<a href=#252 id=252 data-nosnippet>252</a>        </span>);
-<a href=#253 id=253 data-nosnippet>253</a>
-<a href=#254 id=254 data-nosnippet>254</a>        <span class="comment">// Verify that all data files have the correct partition value
-<a href=#255 id=255 data-nosnippet>255</a>        </span><span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
-<a href=#256 id=256 data-nosnippet>256</a>            <span class="macro">assert_eq!</span>(data_file.partition, partition_value);
-<a href=#257 id=257 data-nosnippet>257</a>        }
-<a href=#258 id=258 data-nosnippet>258</a>
-<a href=#259 id=259 data-nosnippet>259</a>        <span class="prelude-val">Ok</span>(())
-<a href=#260 id=260 data-nosnippet>260</a>    }
-<a href=#261 id=261 data-nosnippet>261</a>
-<a href=#262 id=262 data-nosnippet>262</a>    <span class="attr">#[tokio::test]
-<a href=#263 id=263 data-nosnippet>263</a>    </span><span class="kw">async fn </span>test_clustered_writer_sorted_partitions() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#264 id=264 data-nosnippet>264</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
-<a href=#265 id=265 data-nosnippet>265</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
-<a href=#266 id=266 data-nosnippet>266</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
-<a href=#267 id=267 data-nosnippet>267</a>            temp_dir.path().to_str().unwrap().to_string(),
-<a href=#268 id=268 data-nosnippet>268</a>        );
-<a href=#269 id=269 data-nosnippet>269</a>        <span class="kw">let </span>file_name_gen =
-<a href=#270 id=270 data-nosnippet>270</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
-<a href=#271 id=271 data-nosnippet>271</a>
-<a href=#272 id=272 data-nosnippet>272</a>        <span class="comment">// Create schema with partition field
-<a href=#273 id=273 data-nosnippet>273</a>        </span><span class="kw">let </span>schema = Arc::new(
-<a href=#274 id=274 data-nosnippet>274</a>            <span class="kw">crate</span>::spec::Schema::builder()
-<a href=#275 id=275 data-nosnippet>275</a>                .with_schema_id(<span class="number">1</span>)
-<a href=#276 id=276 data-nosnippet>276</a>                .with_fields(<span class="macro">vec!</span>[
-<a href=#277 id=277 data-nosnippet>277</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
-<a href=#278 id=278 data-nosnippet>278</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
-<a href=#279 id=279 data-nosnippet>279</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
-<a href=#280 id=280 data-nosnippet>280</a>                        .into(),
-<a href=#281 id=281 data-nosnippet>281</a>                ])
-<a href=#282 id=282 data-nosnippet>282</a>                .build()<span class="question-mark">?</span>,
-<a href=#283 id=283 data-nosnippet>283</a>        );
-<a href=#284 id=284 data-nosnippet>284</a>
-<a href=#285 id=285 data-nosnippet>285</a>        <span class="comment">// Create partition spec
-<a href=#286 id=286 data-nosnippet>286</a>        </span><span class="kw">let </span>partition_spec = <span class="kw">crate</span>::spec::PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
-<a href=#287 id=287 data-nosnippet>287</a>
-<a href=#288 id=288 data-nosnippet>288</a>        <span class="comment">// Create partition keys for different regions (in sorted order)
-<a href=#289 id=289 data-nosnippet>289</a>        </span><span class="kw">let </span>partition_value_asia =
-<a href=#290 id=290 data-nosnippet>290</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"ASIA"</span>))]);
-<a href=#291 id=291 data-nosnippet>291</a>        <span class="kw">let </span>partition_key_asia = <span class="kw">crate</span>::spec::PartitionKey::new(
-<a href=#292 id=292 data-nosnippet>292</a>            partition_spec.clone(),
-<a href=#293 id=293 data-nosnippet>293</a>            schema.clone(),
-<a href=#294 id=294 data-nosnippet>294</a>            partition_value_asia.clone(),
-<a href=#295 id=295 data-nosnippet>295</a>        );
-<a href=#296 id=296 data-nosnippet>296</a>
-<a href=#297 id=297 data-nosnippet>297</a>        <span class="kw">let </span>partition_value_eu =
-<a href=#298 id=298 data-nosnippet>298</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"EU"</span>))]);
-<a href=#299 id=299 data-nosnippet>299</a>        <span class="kw">let </span>partition_key_eu = <span class="kw">crate</span>::spec::PartitionKey::new(
-<a href=#300 id=300 data-nosnippet>300</a>            partition_spec.clone(),
-<a href=#301 id=301 data-nosnippet>301</a>            schema.clone(),
-<a href=#302 id=302 data-nosnippet>302</a>            partition_value_eu.clone(),
-<a href=#303 id=303 data-nosnippet>303</a>        );
-<a href=#304 id=304 data-nosnippet>304</a>
-<a href=#305 id=305 data-nosnippet>305</a>        <span class="kw">let </span>partition_value_us =
-<a href=#306 id=306 data-nosnippet>306</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"US"</span>))]);
-<a href=#307 id=307 data-nosnippet>307</a>        <span class="kw">let </span>partition_key_us = <span class="kw">crate</span>::spec::PartitionKey::new(
-<a href=#308 id=308 data-nosnippet>308</a>            partition_spec.clone(),
-<a href=#309 id=309 data-nosnippet>309</a>            schema.clone(),
-<a href=#310 id=310 data-nosnippet>310</a>            partition_value_us.clone(),
-<a href=#311 id=311 data-nosnippet>311</a>        );
-<a href=#312 id=312 data-nosnippet>312</a>
-<a href=#313 id=313 data-nosnippet>313</a>        <span class="comment">// Create writer builder
-<a href=#314 id=314 data-nosnippet>314</a>        </span><span class="kw">let </span>parquet_writer_builder =
-<a href=#315 id=315 data-nosnippet>315</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
-<a href=#316 id=316 data-nosnippet>316</a>
-<a href=#317 id=317 data-nosnippet>317</a>        <span class="comment">// Create rolling file writer builder
-<a href=#318 id=318 data-nosnippet>318</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
-<a href=#319 id=319 data-nosnippet>319</a>            parquet_writer_builder,
-<a href=#320 id=320 data-nosnippet>320</a>            file_io.clone(),
-<a href=#321 id=321 data-nosnippet>321</a>            location_gen,
-<a href=#322 id=322 data-nosnippet>322</a>            file_name_gen,
-<a href=#323 id=323 data-nosnippet>323</a>        );
-<a href=#324 id=324 data-nosnippet>324</a>
-<a href=#325 id=325 data-nosnippet>325</a>        <span class="comment">// Create data file writer builder
-<a href=#326 id=326 data-nosnippet>326</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
-<a href=#327 id=327 data-nosnippet>327</a>
-<a href=#328 id=328 data-nosnippet>328</a>        <span class="comment">// Create clustered writer
-<a href=#329 id=329 data-nosnippet>329</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = ClusteredWriter::new(data_file_writer_builder);
-<a href=#330 id=330 data-nosnippet>330</a>
-<a href=#331 id=331 data-nosnippet>331</a>        <span class="comment">// Create test data with proper field ID metadata
-<a href=#332 id=332 data-nosnippet>332</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
-<a href=#333 id=333 data-nosnippet>333</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#334 id=334 data-nosnippet>334</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#335 id=335 data-nosnippet>335</a>                <span class="number">1</span>.to_string(),
-<a href=#336 id=336 data-nosnippet>336</a>            )])),
-<a href=#337 id=337 data-nosnippet>337</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#338 id=338 data-nosnippet>338</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#339 id=339 data-nosnippet>339</a>                <span class="number">2</span>.to_string(),
-<a href=#340 id=340 data-nosnippet>340</a>            )])),
-<a href=#341 id=341 data-nosnippet>341</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#342 id=342 data-nosnippet>342</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#343 id=343 data-nosnippet>343</a>                <span class="number">3</span>.to_string(),
-<a href=#344 id=344 data-nosnippet>344</a>            )])),
-<a href=#345 id=345 data-nosnippet>345</a>        ]);
-<a href=#346 id=346 data-nosnippet>346</a>
-<a href=#347 id=347 data-nosnippet>347</a>        <span class="comment">// Create batches for different partitions (in sorted order)
-<a href=#348 id=348 data-nosnippet>348</a>        </span><span class="kw">let </span>batch_asia = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#349 id=349 data-nosnippet>349</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
-<a href=#350 id=350 data-nosnippet>350</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
-<a href=#351 id=351 data-nosnippet>351</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"ASIA"</span>, <span class="string">"ASIA"</span>])),
-<a href=#352 id=352 data-nosnippet>352</a>        ])<span class="question-mark">?</span>;
-<a href=#353 id=353 data-nosnippet>353</a>
-<a href=#354 id=354 data-nosnippet>354</a>        <span class="kw">let </span>batch_eu = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#355 id=355 data-nosnippet>355</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
-<a href=#356 id=356 data-nosnippet>356</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
-<a href=#357 id=357 data-nosnippet>357</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"EU"</span>, <span class="string">"EU"</span>])),
-<a href=#358 id=358 data-nosnippet>358</a>        ])<span class="question-mark">?</span>;
-<a href=#359 id=359 data-nosnippet>359</a>
-<a href=#360 id=360 data-nosnippet>360</a>        <span class="kw">let </span>batch_us = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#361 id=361 data-nosnippet>361</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">5</span>, <span class="number">6</span>])),
-<a href=#362 id=362 data-nosnippet>362</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Eve"</span>, <span class="string">"Frank"</span>])),
-<a href=#363 id=363 data-nosnippet>363</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
-<a href=#364 id=364 data-nosnippet>364</a>        ])<span class="question-mark">?</span>;
-<a href=#365 id=365 data-nosnippet>365</a>
-<a href=#366 id=366 data-nosnippet>366</a>        <span class="comment">// Write data in sorted partition order (this should work)
-<a href=#367 id=367 data-nosnippet>367</a>        </span>writer.write(partition_key_asia.clone(), batch_asia).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#368 id=368 data-nosnippet>368</a>        writer.write(partition_key_eu.clone(), batch_eu).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#369 id=369 data-nosnippet>369</a>        writer.write(partition_key_us.clone(), batch_us).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#370 id=370 data-nosnippet>370</a>
-<a href=#371 id=371 data-nosnippet>371</a>        <span class="comment">// Close writer and get data files
-<a href=#372 id=372 data-nosnippet>372</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#373 id=373 data-nosnippet>373</a>
-<a href=#374 id=374 data-nosnippet>374</a>        <span class="comment">// Verify files were created for all partitions
-<a href=#375 id=375 data-nosnippet>375</a>        </span><span class="macro">assert!</span>(
-<a href=#376 id=376 data-nosnippet>376</a>            data_files.len() &gt;= <span class="number">3</span>,
-<a href=#377 id=377 data-nosnippet>377</a>            <span class="string">"Expected at least 3 data files (one per partition), got {}"</span>,
-<a href=#378 id=378 data-nosnippet>378</a>            data_files.len()
-<a href=#379 id=379 data-nosnippet>379</a>        );
-<a href=#380 id=380 data-nosnippet>380</a>
-<a href=#381 id=381 data-nosnippet>381</a>        <span class="comment">// Verify that we have files for each partition
-<a href=#382 id=382 data-nosnippet>382</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>partitions_found = std::collections::HashSet::new();
-<a href=#383 id=383 data-nosnippet>383</a>        <span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
-<a href=#384 id=384 data-nosnippet>384</a>            partitions_found.insert(data_file.partition.clone());
-<a href=#385 id=385 data-nosnippet>385</a>        }
-<a href=#386 id=386 data-nosnippet>386</a>
-<a href=#387 id=387 data-nosnippet>387</a>        <span class="macro">assert!</span>(
-<a href=#388 id=388 data-nosnippet>388</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_asia),
-<a href=#389 id=389 data-nosnippet>389</a>            <span class="string">"Missing ASIA partition"
-<a href=#390 id=390 data-nosnippet>390</a>        </span>);
-<a href=#391 id=391 data-nosnippet>391</a>        <span class="macro">assert!</span>(
-<a href=#392 id=392 data-nosnippet>392</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_eu),
-<a href=#393 id=393 data-nosnippet>393</a>            <span class="string">"Missing EU partition"
-<a href=#394 id=394 data-nosnippet>394</a>        </span>);
-<a href=#395 id=395 data-nosnippet>395</a>        <span class="macro">assert!</span>(
-<a href=#396 id=396 data-nosnippet>396</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_us),
-<a href=#397 id=397 data-nosnippet>397</a>            <span class="string">"Missing US partition"
-<a href=#398 id=398 data-nosnippet>398</a>        </span>);
-<a href=#399 id=399 data-nosnippet>399</a>
-<a href=#400 id=400 data-nosnippet>400</a>        <span class="prelude-val">Ok</span>(())
-<a href=#401 id=401 data-nosnippet>401</a>    }
-<a href=#402 id=402 data-nosnippet>402</a>
-<a href=#403 id=403 data-nosnippet>403</a>    <span class="attr">#[tokio::test]
-<a href=#404 id=404 data-nosnippet>404</a>    </span><span class="kw">async fn </span>test_clustered_writer_unsorted_partitions_error() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#405 id=405 data-nosnippet>405</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
-<a href=#406 id=406 data-nosnippet>406</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
-<a href=#407 id=407 data-nosnippet>407</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
-<a href=#408 id=408 data-nosnippet>408</a>            temp_dir.path().to_str().unwrap().to_string(),
-<a href=#409 id=409 data-nosnippet>409</a>        );
-<a href=#410 id=410 data-nosnippet>410</a>        <span class="kw">let </span>file_name_gen =
-<a href=#411 id=411 data-nosnippet>411</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
-<a href=#412 id=412 data-nosnippet>412</a>
-<a href=#413 id=413 data-nosnippet>413</a>        <span class="comment">// Create schema with partition field
-<a href=#414 id=414 data-nosnippet>414</a>        </span><span class="kw">let </span>schema = Arc::new(
-<a href=#415 id=415 data-nosnippet>415</a>            <span class="kw">crate</span>::spec::Schema::builder()
-<a href=#416 id=416 data-nosnippet>416</a>                .with_schema_id(<span class="number">1</span>)
-<a href=#417 id=417 data-nosnippet>417</a>                .with_fields(<span class="macro">vec!</span>[
-<a href=#418 id=418 data-nosnippet>418</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
-<a href=#419 id=419 data-nosnippet>419</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
-<a href=#420 id=420 data-nosnippet>420</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
-<a href=#421 id=421 data-nosnippet>421</a>                        .into(),
-<a href=#422 id=422 data-nosnippet>422</a>                ])
-<a href=#423 id=423 data-nosnippet>423</a>                .build()<span class="question-mark">?</span>,
-<a href=#424 id=424 data-nosnippet>424</a>        );
-<a href=#425 id=425 data-nosnippet>425</a>
-<a href=#426 id=426 data-nosnippet>426</a>        <span class="comment">// Create partition spec
-<a href=#427 id=427 data-nosnippet>427</a>        </span><span class="kw">let </span>partition_spec = <span class="kw">crate</span>::spec::PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
-<a href=#428 id=428 data-nosnippet>428</a>
-<a href=#429 id=429 data-nosnippet>429</a>        <span class="comment">// Create partition keys for different regions
-<a href=#430 id=430 data-nosnippet>430</a>        </span><span class="kw">let </span>partition_value_us =
-<a href=#431 id=431 data-nosnippet>431</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"US"</span>))]);
-<a href=#432 id=432 data-nosnippet>432</a>        <span class="kw">let </span>partition_key_us = <span class="kw">crate</span>::spec::PartitionKey::new(
-<a href=#433 id=433 data-nosnippet>433</a>            partition_spec.clone(),
-<a href=#434 id=434 data-nosnippet>434</a>            schema.clone(),
-<a href=#435 id=435 data-nosnippet>435</a>            partition_value_us.clone(),
-<a href=#436 id=436 data-nosnippet>436</a>        );
-<a href=#437 id=437 data-nosnippet>437</a>
-<a href=#438 id=438 data-nosnippet>438</a>        <span class="kw">let </span>partition_value_eu =
-<a href=#439 id=439 data-nosnippet>439</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"EU"</span>))]);
-<a href=#440 id=440 data-nosnippet>440</a>        <span class="kw">let </span>partition_key_eu = <span class="kw">crate</span>::spec::PartitionKey::new(
-<a href=#441 id=441 data-nosnippet>441</a>            partition_spec.clone(),
-<a href=#442 id=442 data-nosnippet>442</a>            schema.clone(),
-<a href=#443 id=443 data-nosnippet>443</a>            partition_value_eu.clone(),
-<a href=#444 id=444 data-nosnippet>444</a>        );
-<a href=#445 id=445 data-nosnippet>445</a>
-<a href=#446 id=446 data-nosnippet>446</a>        <span class="comment">// Create writer builder
-<a href=#447 id=447 data-nosnippet>447</a>        </span><span class="kw">let </span>parquet_writer_builder =
-<a href=#448 id=448 data-nosnippet>448</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
-<a href=#449 id=449 data-nosnippet>449</a>
-<a href=#450 id=450 data-nosnippet>450</a>        <span class="comment">// Create rolling file writer builder
-<a href=#451 id=451 data-nosnippet>451</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
-<a href=#452 id=452 data-nosnippet>452</a>            parquet_writer_builder,
-<a href=#453 id=453 data-nosnippet>453</a>            file_io.clone(),
-<a href=#454 id=454 data-nosnippet>454</a>            location_gen,
-<a href=#455 id=455 data-nosnippet>455</a>            file_name_gen,
-<a href=#456 id=456 data-nosnippet>456</a>        );
-<a href=#457 id=457 data-nosnippet>457</a>
-<a href=#458 id=458 data-nosnippet>458</a>        <span class="comment">// Create data file writer builder
-<a href=#459 id=459 data-nosnippet>459</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
-<a href=#460 id=460 data-nosnippet>460</a>
-<a href=#461 id=461 data-nosnippet>461</a>        <span class="comment">// Create clustered writer
-<a href=#462 id=462 data-nosnippet>462</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = ClusteredWriter::new(data_file_writer_builder);
-<a href=#463 id=463 data-nosnippet>463</a>
-<a href=#464 id=464 data-nosnippet>464</a>        <span class="comment">// Create test data with proper field ID metadata
-<a href=#465 id=465 data-nosnippet>465</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
-<a href=#466 id=466 data-nosnippet>466</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#467 id=467 data-nosnippet>467</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#468 id=468 data-nosnippet>468</a>                <span class="number">1</span>.to_string(),
-<a href=#469 id=469 data-nosnippet>469</a>            )])),
-<a href=#470 id=470 data-nosnippet>470</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#471 id=471 data-nosnippet>471</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#472 id=472 data-nosnippet>472</a>                <span class="number">2</span>.to_string(),
-<a href=#473 id=473 data-nosnippet>473</a>            )])),
-<a href=#474 id=474 data-nosnippet>474</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#475 id=475 data-nosnippet>475</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#476 id=476 data-nosnippet>476</a>                <span class="number">3</span>.to_string(),
-<a href=#477 id=477 data-nosnippet>477</a>            )])),
-<a href=#478 id=478 data-nosnippet>478</a>        ]);
-<a href=#479 id=479 data-nosnippet>479</a>
-<a href=#480 id=480 data-nosnippet>480</a>        <span class="comment">// Create batches for different partitions
-<a href=#481 id=481 data-nosnippet>481</a>        </span><span class="kw">let </span>batch_us = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#482 id=482 data-nosnippet>482</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
-<a href=#483 id=483 data-nosnippet>483</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
-<a href=#484 id=484 data-nosnippet>484</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
-<a href=#485 id=485 data-nosnippet>485</a>        ])<span class="question-mark">?</span>;
-<a href=#486 id=486 data-nosnippet>486</a>
-<a href=#487 id=487 data-nosnippet>487</a>        <span class="kw">let </span>batch_eu = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#488 id=488 data-nosnippet>488</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
-<a href=#489 id=489 data-nosnippet>489</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
-<a href=#490 id=490 data-nosnippet>490</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"EU"</span>, <span class="string">"EU"</span>])),
-<a href=#491 id=491 data-nosnippet>491</a>        ])<span class="question-mark">?</span>;
-<a href=#492 id=492 data-nosnippet>492</a>
-<a href=#493 id=493 data-nosnippet>493</a>        <span class="kw">let </span>batch_us2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#494 id=494 data-nosnippet>494</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">5</span>])),
-<a href=#495 id=495 data-nosnippet>495</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Eve"</span>])),
-<a href=#496 id=496 data-nosnippet>496</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>])),
-<a href=#497 id=497 data-nosnippet>497</a>        ])<span class="question-mark">?</span>;
-<a href=#498 id=498 data-nosnippet>498</a>
-<a href=#499 id=499 data-nosnippet>499</a>        <span class="comment">// Write data to US partition first
-<a href=#500 id=500 data-nosnippet>500</a>        </span>writer.write(partition_key_us.clone(), batch_us).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#501 id=501 data-nosnippet>501</a>
-<a href=#502 id=502 data-nosnippet>502</a>        <span class="comment">// Write data to EU partition (this closes US partition)
-<a href=#503 id=503 data-nosnippet>503</a>        </span>writer.write(partition_key_eu.clone(), batch_eu).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#504 id=504 data-nosnippet>504</a>
-<a href=#505 id=505 data-nosnippet>505</a>        <span class="comment">// Try to write to US partition again - this should fail because data is not sorted
-<a href=#506 id=506 data-nosnippet>506</a>        </span><span class="kw">let </span>result = writer.write(partition_key_us.clone(), batch_us2).<span class="kw">await</span>;
-<a href=#507 id=507 data-nosnippet>507</a>
-<a href=#508 id=508 data-nosnippet>508</a>        <span class="macro">assert!</span>(result.is_err(), <span class="string">"Expected error when writing unsorted data"</span>);
-<a href=#509 id=509 data-nosnippet>509</a>
-<a href=#510 id=510 data-nosnippet>510</a>        <span class="kw">let </span>error = result.unwrap_err();
-<a href=#511 id=511 data-nosnippet>511</a>        <span class="macro">assert!</span>(
-<a href=#512 id=512 data-nosnippet>512</a>            error.to_string().contains(<span class="string">"The input is not sorted"</span>),
-<a href=#513 id=513 data-nosnippet>513</a>            <span class="string">"Expected 'input is not sorted' error, got: {error}"
-<a href=#514 id=514 data-nosnippet>514</a>        </span>);
-<a href=#515 id=515 data-nosnippet>515</a>
-<a href=#516 id=516 data-nosnippet>516</a>        <span class="prelude-val">Ok</span>(())
-<a href=#517 id=517 data-nosnippet>517</a>    }
-<a href=#518 id=518 data-nosnippet>518</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
+<a href=#121 id=121 data-nosnippet>121</a>                    .build(<span class="prelude-val">Some</span>(partition_key.clone()))
+<a href=#122 id=122 data-nosnippet>122</a>                    .<span class="kw">await</span><span class="question-mark">?</span>,
+<a href=#123 id=123 data-nosnippet>123</a>            );
+<a href=#124 id=124 data-nosnippet>124</a>            <span class="self">self</span>.current_partition = <span class="prelude-val">Some</span>(partition_value.clone());
+<a href=#125 id=125 data-nosnippet>125</a>        }
+<a href=#126 id=126 data-nosnippet>126</a>
+<a href=#127 id=127 data-nosnippet>127</a>        <span class="comment">// do write
+<a href=#128 id=128 data-nosnippet>128</a>        </span><span class="self">self</span>.current_writer
+<a href=#129 id=129 data-nosnippet>129</a>            .as_mut()
+<a href=#130 id=130 data-nosnippet>130</a>            .expect(<span class="string">"Writer should be initialized"</span>)
+<a href=#131 id=131 data-nosnippet>131</a>            .write(input)
+<a href=#132 id=132 data-nosnippet>132</a>            .<span class="kw">await
+<a href=#133 id=133 data-nosnippet>133</a>    </span>}
+<a href=#134 id=134 data-nosnippet>134</a>
+<a href=#135 id=135 data-nosnippet>135</a>    <span class="kw">async fn </span>close(<span class="kw-2">mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;O&gt; {
+<a href=#136 id=136 data-nosnippet>136</a>        <span class="self">self</span>.close_current_writer().<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#137 id=137 data-nosnippet>137</a>
+<a href=#138 id=138 data-nosnippet>138</a>        <span class="comment">// Collect all output items into the output collection type
+<a href=#139 id=139 data-nosnippet>139</a>        </span><span class="prelude-val">Ok</span>(O::from_iter(<span class="self">self</span>.output))
+<a href=#140 id=140 data-nosnippet>140</a>    }
+<a href=#141 id=141 data-nosnippet>141</a>}
+<a href=#142 id=142 data-nosnippet>142</a>
+<a href=#143 id=143 data-nosnippet>143</a><span class="attr">#[cfg(test)]
+<a href=#144 id=144 data-nosnippet>144</a></span><span class="kw">mod </span>tests {
+<a href=#145 id=145 data-nosnippet>145</a>    <span class="kw">use </span>std::collections::HashMap;
+<a href=#146 id=146 data-nosnippet>146</a>    <span class="kw">use </span>std::sync::Arc;
+<a href=#147 id=147 data-nosnippet>147</a>
+<a href=#148 id=148 data-nosnippet>148</a>    <span class="kw">use </span>arrow_array::{Int32Array, RecordBatch, StringArray};
+<a href=#149 id=149 data-nosnippet>149</a>    <span class="kw">use </span>arrow_schema::{DataType, Field, Schema};
+<a href=#150 id=150 data-nosnippet>150</a>    <span class="kw">use </span>parquet::arrow::PARQUET_FIELD_ID_META_KEY;
+<a href=#151 id=151 data-nosnippet>151</a>    <span class="kw">use </span>parquet::file::properties::WriterProperties;
+<a href=#152 id=152 data-nosnippet>152</a>    <span class="kw">use </span>tempfile::TempDir;
+<a href=#153 id=153 data-nosnippet>153</a>
+<a href=#154 id=154 data-nosnippet>154</a>    <span class="kw">use super</span>::<span class="kw-2">*</span>;
+<a href=#155 id=155 data-nosnippet>155</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIOBuilder;
+<a href=#156 id=156 data-nosnippet>156</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{DataFileFormat, NestedField, PrimitiveType, Type};
+<a href=#157 id=157 data-nosnippet>157</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::base_writer::data_file_writer::DataFileWriterBuilder;
+<a href=#158 id=158 data-nosnippet>158</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::ParquetWriterBuilder;
+<a href=#159 id=159 data-nosnippet>159</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::location_generator::{
+<a href=#160 id=160 data-nosnippet>160</a>        DefaultFileNameGenerator, DefaultLocationGenerator,
+<a href=#161 id=161 data-nosnippet>161</a>    };
+<a href=#162 id=162 data-nosnippet>162</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::rolling_writer::RollingFileWriterBuilder;
+<a href=#163 id=163 data-nosnippet>163</a>
+<a href=#164 id=164 data-nosnippet>164</a>    <span class="attr">#[tokio::test]
+<a href=#165 id=165 data-nosnippet>165</a>    </span><span class="kw">async fn </span>test_clustered_writer_single_partition() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#166 id=166 data-nosnippet>166</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
+<a href=#167 id=167 data-nosnippet>167</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
+<a href=#168 id=168 data-nosnippet>168</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
+<a href=#169 id=169 data-nosnippet>169</a>            temp_dir.path().to_str().unwrap().to_string(),
+<a href=#170 id=170 data-nosnippet>170</a>        );
+<a href=#171 id=171 data-nosnippet>171</a>        <span class="kw">let </span>file_name_gen =
+<a href=#172 id=172 data-nosnippet>172</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
+<a href=#173 id=173 data-nosnippet>173</a>
+<a href=#174 id=174 data-nosnippet>174</a>        <span class="comment">// Create schema with partition field
+<a href=#175 id=175 data-nosnippet>175</a>        </span><span class="kw">let </span>schema = Arc::new(
+<a href=#176 id=176 data-nosnippet>176</a>            <span class="kw">crate</span>::spec::Schema::builder()
+<a href=#177 id=177 data-nosnippet>177</a>                .with_schema_id(<span class="number">1</span>)
+<a href=#178 id=178 data-nosnippet>178</a>                .with_fields(<span class="macro">vec!</span>[
+<a href=#179 id=179 data-nosnippet>179</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
+<a href=#180 id=180 data-nosnippet>180</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
+<a href=#181 id=181 data-nosnippet>181</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
+<a href=#182 id=182 data-nosnippet>182</a>                        .into(),
+<a href=#183 id=183 data-nosnippet>183</a>                ])
+<a href=#184 id=184 data-nosnippet>184</a>                .build()<span class="question-mark">?</span>,
+<a href=#185 id=185 data-nosnippet>185</a>        );
+<a href=#186 id=186 data-nosnippet>186</a>
+<a href=#187 id=187 data-nosnippet>187</a>        <span class="comment">// Create partition spec and key
+<a href=#188 id=188 data-nosnippet>188</a>        </span><span class="kw">let </span>partition_spec = <span class="kw">crate</span>::spec::PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
+<a href=#189 id=189 data-nosnippet>189</a>        <span class="kw">let </span>partition_value =
+<a href=#190 id=190 data-nosnippet>190</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"US"</span>))]);
+<a href=#191 id=191 data-nosnippet>191</a>        <span class="kw">let </span>partition_key =
+<a href=#192 id=192 data-nosnippet>192</a>            <span class="kw">crate</span>::spec::PartitionKey::new(partition_spec, schema.clone(), partition_value.clone());
+<a href=#193 id=193 data-nosnippet>193</a>
+<a href=#194 id=194 data-nosnippet>194</a>        <span class="comment">// Create writer builder
+<a href=#195 id=195 data-nosnippet>195</a>        </span><span class="kw">let </span>parquet_writer_builder =
+<a href=#196 id=196 data-nosnippet>196</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
+<a href=#197 id=197 data-nosnippet>197</a>
+<a href=#198 id=198 data-nosnippet>198</a>        <span class="comment">// Create rolling file writer builder
+<a href=#199 id=199 data-nosnippet>199</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
+<a href=#200 id=200 data-nosnippet>200</a>            parquet_writer_builder,
+<a href=#201 id=201 data-nosnippet>201</a>            file_io.clone(),
+<a href=#202 id=202 data-nosnippet>202</a>            location_gen,
+<a href=#203 id=203 data-nosnippet>203</a>            file_name_gen,
+<a href=#204 id=204 data-nosnippet>204</a>        );
+<a href=#205 id=205 data-nosnippet>205</a>
+<a href=#206 id=206 data-nosnippet>206</a>        <span class="comment">// Create data file writer builder
+<a href=#207 id=207 data-nosnippet>207</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
+<a href=#208 id=208 data-nosnippet>208</a>
+<a href=#209 id=209 data-nosnippet>209</a>        <span class="comment">// Create clustered writer
+<a href=#210 id=210 data-nosnippet>210</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = ClusteredWriter::new(data_file_writer_builder);
+<a href=#211 id=211 data-nosnippet>211</a>
+<a href=#212 id=212 data-nosnippet>212</a>        <span class="comment">// Create test data with proper field ID metadata
+<a href=#213 id=213 data-nosnippet>213</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
+<a href=#214 id=214 data-nosnippet>214</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#215 id=215 data-nosnippet>215</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#216 id=216 data-nosnippet>216</a>                <span class="number">1</span>.to_string(),
+<a href=#217 id=217 data-nosnippet>217</a>            )])),
+<a href=#218 id=218 data-nosnippet>218</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#219 id=219 data-nosnippet>219</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#220 id=220 data-nosnippet>220</a>                <span class="number">2</span>.to_string(),
+<a href=#221 id=221 data-nosnippet>221</a>            )])),
+<a href=#222 id=222 data-nosnippet>222</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#223 id=223 data-nosnippet>223</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#224 id=224 data-nosnippet>224</a>                <span class="number">3</span>.to_string(),
+<a href=#225 id=225 data-nosnippet>225</a>            )])),
+<a href=#226 id=226 data-nosnippet>226</a>        ]);
+<a href=#227 id=227 data-nosnippet>227</a>
+<a href=#228 id=228 data-nosnippet>228</a>        <span class="kw">let </span>batch1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#229 id=229 data-nosnippet>229</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
+<a href=#230 id=230 data-nosnippet>230</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
+<a href=#231 id=231 data-nosnippet>231</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
+<a href=#232 id=232 data-nosnippet>232</a>        ])<span class="question-mark">?</span>;
+<a href=#233 id=233 data-nosnippet>233</a>
+<a href=#234 id=234 data-nosnippet>234</a>        <span class="kw">let </span>batch2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#235 id=235 data-nosnippet>235</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
+<a href=#236 id=236 data-nosnippet>236</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
+<a href=#237 id=237 data-nosnippet>237</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
+<a href=#238 id=238 data-nosnippet>238</a>        ])<span class="question-mark">?</span>;
+<a href=#239 id=239 data-nosnippet>239</a>
+<a href=#240 id=240 data-nosnippet>240</a>        <span class="comment">// Write data to the same partition (this should work)
+<a href=#241 id=241 data-nosnippet>241</a>        </span>writer.write(partition_key.clone(), batch1).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#242 id=242 data-nosnippet>242</a>        writer.write(partition_key.clone(), batch2).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#243 id=243 data-nosnippet>243</a>
+<a href=#244 id=244 data-nosnippet>244</a>        <span class="comment">// Close writer and get data files
+<a href=#245 id=245 data-nosnippet>245</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#246 id=246 data-nosnippet>246</a>
+<a href=#247 id=247 data-nosnippet>247</a>        <span class="comment">// Verify at least one file was created
+<a href=#248 id=248 data-nosnippet>248</a>        </span><span class="macro">assert!</span>(
+<a href=#249 id=249 data-nosnippet>249</a>            !data_files.is_empty(),
+<a href=#250 id=250 data-nosnippet>250</a>            <span class="string">"Expected at least one data file to be created"
+<a href=#251 id=251 data-nosnippet>251</a>        </span>);
+<a href=#252 id=252 data-nosnippet>252</a>
+<a href=#253 id=253 data-nosnippet>253</a>        <span class="comment">// Verify that all data files have the correct partition value
+<a href=#254 id=254 data-nosnippet>254</a>        </span><span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
+<a href=#255 id=255 data-nosnippet>255</a>            <span class="macro">assert_eq!</span>(data_file.partition, partition_value);
+<a href=#256 id=256 data-nosnippet>256</a>        }
+<a href=#257 id=257 data-nosnippet>257</a>
+<a href=#258 id=258 data-nosnippet>258</a>        <span class="prelude-val">Ok</span>(())
+<a href=#259 id=259 data-nosnippet>259</a>    }
+<a href=#260 id=260 data-nosnippet>260</a>
+<a href=#261 id=261 data-nosnippet>261</a>    <span class="attr">#[tokio::test]
+<a href=#262 id=262 data-nosnippet>262</a>    </span><span class="kw">async fn </span>test_clustered_writer_sorted_partitions() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#263 id=263 data-nosnippet>263</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
+<a href=#264 id=264 data-nosnippet>264</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
+<a href=#265 id=265 data-nosnippet>265</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
+<a href=#266 id=266 data-nosnippet>266</a>            temp_dir.path().to_str().unwrap().to_string(),
+<a href=#267 id=267 data-nosnippet>267</a>        );
+<a href=#268 id=268 data-nosnippet>268</a>        <span class="kw">let </span>file_name_gen =
+<a href=#269 id=269 data-nosnippet>269</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
+<a href=#270 id=270 data-nosnippet>270</a>
+<a href=#271 id=271 data-nosnippet>271</a>        <span class="comment">// Create schema with partition field
+<a href=#272 id=272 data-nosnippet>272</a>        </span><span class="kw">let </span>schema = Arc::new(
+<a href=#273 id=273 data-nosnippet>273</a>            <span class="kw">crate</span>::spec::Schema::builder()
+<a href=#274 id=274 data-nosnippet>274</a>                .with_schema_id(<span class="number">1</span>)
+<a href=#275 id=275 data-nosnippet>275</a>                .with_fields(<span class="macro">vec!</span>[
+<a href=#276 id=276 data-nosnippet>276</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
+<a href=#277 id=277 data-nosnippet>277</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
+<a href=#278 id=278 data-nosnippet>278</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
+<a href=#279 id=279 data-nosnippet>279</a>                        .into(),
+<a href=#280 id=280 data-nosnippet>280</a>                ])
+<a href=#281 id=281 data-nosnippet>281</a>                .build()<span class="question-mark">?</span>,
+<a href=#282 id=282 data-nosnippet>282</a>        );
+<a href=#283 id=283 data-nosnippet>283</a>
+<a href=#284 id=284 data-nosnippet>284</a>        <span class="comment">// Create partition spec
+<a href=#285 id=285 data-nosnippet>285</a>        </span><span class="kw">let </span>partition_spec = <span class="kw">crate</span>::spec::PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
+<a href=#286 id=286 data-nosnippet>286</a>
+<a href=#287 id=287 data-nosnippet>287</a>        <span class="comment">// Create partition keys for different regions (in sorted order)
+<a href=#288 id=288 data-nosnippet>288</a>        </span><span class="kw">let </span>partition_value_asia =
+<a href=#289 id=289 data-nosnippet>289</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"ASIA"</span>))]);
+<a href=#290 id=290 data-nosnippet>290</a>        <span class="kw">let </span>partition_key_asia = <span class="kw">crate</span>::spec::PartitionKey::new(
+<a href=#291 id=291 data-nosnippet>291</a>            partition_spec.clone(),
+<a href=#292 id=292 data-nosnippet>292</a>            schema.clone(),
+<a href=#293 id=293 data-nosnippet>293</a>            partition_value_asia.clone(),
+<a href=#294 id=294 data-nosnippet>294</a>        );
+<a href=#295 id=295 data-nosnippet>295</a>
+<a href=#296 id=296 data-nosnippet>296</a>        <span class="kw">let </span>partition_value_eu =
+<a href=#297 id=297 data-nosnippet>297</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"EU"</span>))]);
+<a href=#298 id=298 data-nosnippet>298</a>        <span class="kw">let </span>partition_key_eu = <span class="kw">crate</span>::spec::PartitionKey::new(
+<a href=#299 id=299 data-nosnippet>299</a>            partition_spec.clone(),
+<a href=#300 id=300 data-nosnippet>300</a>            schema.clone(),
+<a href=#301 id=301 data-nosnippet>301</a>            partition_value_eu.clone(),
+<a href=#302 id=302 data-nosnippet>302</a>        );
+<a href=#303 id=303 data-nosnippet>303</a>
+<a href=#304 id=304 data-nosnippet>304</a>        <span class="kw">let </span>partition_value_us =
+<a href=#305 id=305 data-nosnippet>305</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"US"</span>))]);
+<a href=#306 id=306 data-nosnippet>306</a>        <span class="kw">let </span>partition_key_us = <span class="kw">crate</span>::spec::PartitionKey::new(
+<a href=#307 id=307 data-nosnippet>307</a>            partition_spec.clone(),
+<a href=#308 id=308 data-nosnippet>308</a>            schema.clone(),
+<a href=#309 id=309 data-nosnippet>309</a>            partition_value_us.clone(),
+<a href=#310 id=310 data-nosnippet>310</a>        );
+<a href=#311 id=311 data-nosnippet>311</a>
+<a href=#312 id=312 data-nosnippet>312</a>        <span class="comment">// Create writer builder
+<a href=#313 id=313 data-nosnippet>313</a>        </span><span class="kw">let </span>parquet_writer_builder =
+<a href=#314 id=314 data-nosnippet>314</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
+<a href=#315 id=315 data-nosnippet>315</a>
+<a href=#316 id=316 data-nosnippet>316</a>        <span class="comment">// Create rolling file writer builder
+<a href=#317 id=317 data-nosnippet>317</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
+<a href=#318 id=318 data-nosnippet>318</a>            parquet_writer_builder,
+<a href=#319 id=319 data-nosnippet>319</a>            file_io.clone(),
+<a href=#320 id=320 data-nosnippet>320</a>            location_gen,
+<a href=#321 id=321 data-nosnippet>321</a>            file_name_gen,
+<a href=#322 id=322 data-nosnippet>322</a>        );
+<a href=#323 id=323 data-nosnippet>323</a>
+<a href=#324 id=324 data-nosnippet>324</a>        <span class="comment">// Create data file writer builder
+<a href=#325 id=325 data-nosnippet>325</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
+<a href=#326 id=326 data-nosnippet>326</a>
+<a href=#327 id=327 data-nosnippet>327</a>        <span class="comment">// Create clustered writer
+<a href=#328 id=328 data-nosnippet>328</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = ClusteredWriter::new(data_file_writer_builder);
+<a href=#329 id=329 data-nosnippet>329</a>
+<a href=#330 id=330 data-nosnippet>330</a>        <span class="comment">// Create test data with proper field ID metadata
+<a href=#331 id=331 data-nosnippet>331</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
+<a href=#332 id=332 data-nosnippet>332</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#333 id=333 data-nosnippet>333</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#334 id=334 data-nosnippet>334</a>                <span class="number">1</span>.to_string(),
+<a href=#335 id=335 data-nosnippet>335</a>            )])),
+<a href=#336 id=336 data-nosnippet>336</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#337 id=337 data-nosnippet>337</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#338 id=338 data-nosnippet>338</a>                <span class="number">2</span>.to_string(),
+<a href=#339 id=339 data-nosnippet>339</a>            )])),
+<a href=#340 id=340 data-nosnippet>340</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#341 id=341 data-nosnippet>341</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#342 id=342 data-nosnippet>342</a>                <span class="number">3</span>.to_string(),
+<a href=#343 id=343 data-nosnippet>343</a>            )])),
+<a href=#344 id=344 data-nosnippet>344</a>        ]);
+<a href=#345 id=345 data-nosnippet>345</a>
+<a href=#346 id=346 data-nosnippet>346</a>        <span class="comment">// Create batches for different partitions (in sorted order)
+<a href=#347 id=347 data-nosnippet>347</a>        </span><span class="kw">let </span>batch_asia = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#348 id=348 data-nosnippet>348</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
+<a href=#349 id=349 data-nosnippet>349</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
+<a href=#350 id=350 data-nosnippet>350</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"ASIA"</span>, <span class="string">"ASIA"</span>])),
+<a href=#351 id=351 data-nosnippet>351</a>        ])<span class="question-mark">?</span>;
+<a href=#352 id=352 data-nosnippet>352</a>
+<a href=#353 id=353 data-nosnippet>353</a>        <span class="kw">let </span>batch_eu = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#354 id=354 data-nosnippet>354</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
+<a href=#355 id=355 data-nosnippet>355</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
+<a href=#356 id=356 data-nosnippet>356</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"EU"</span>, <span class="string">"EU"</span>])),
+<a href=#357 id=357 data-nosnippet>357</a>        ])<span class="question-mark">?</span>;
+<a href=#358 id=358 data-nosnippet>358</a>
+<a href=#359 id=359 data-nosnippet>359</a>        <span class="kw">let </span>batch_us = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#360 id=360 data-nosnippet>360</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">5</span>, <span class="number">6</span>])),
+<a href=#361 id=361 data-nosnippet>361</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Eve"</span>, <span class="string">"Frank"</span>])),
+<a href=#362 id=362 data-nosnippet>362</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
+<a href=#363 id=363 data-nosnippet>363</a>        ])<span class="question-mark">?</span>;
+<a href=#364 id=364 data-nosnippet>364</a>
+<a href=#365 id=365 data-nosnippet>365</a>        <span class="comment">// Write data in sorted partition order (this should work)
+<a href=#366 id=366 data-nosnippet>366</a>        </span>writer.write(partition_key_asia.clone(), batch_asia).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#367 id=367 data-nosnippet>367</a>        writer.write(partition_key_eu.clone(), batch_eu).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#368 id=368 data-nosnippet>368</a>        writer.write(partition_key_us.clone(), batch_us).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#369 id=369 data-nosnippet>369</a>
+<a href=#370 id=370 data-nosnippet>370</a>        <span class="comment">// Close writer and get data files
+<a href=#371 id=371 data-nosnippet>371</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#372 id=372 data-nosnippet>372</a>
+<a href=#373 id=373 data-nosnippet>373</a>        <span class="comment">// Verify files were created for all partitions
+<a href=#374 id=374 data-nosnippet>374</a>        </span><span class="macro">assert!</span>(
+<a href=#375 id=375 data-nosnippet>375</a>            data_files.len() &gt;= <span class="number">3</span>,
+<a href=#376 id=376 data-nosnippet>376</a>            <span class="string">"Expected at least 3 data files (one per partition), got {}"</span>,
+<a href=#377 id=377 data-nosnippet>377</a>            data_files.len()
+<a href=#378 id=378 data-nosnippet>378</a>        );
+<a href=#379 id=379 data-nosnippet>379</a>
+<a href=#380 id=380 data-nosnippet>380</a>        <span class="comment">// Verify that we have files for each partition
+<a href=#381 id=381 data-nosnippet>381</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>partitions_found = std::collections::HashSet::new();
+<a href=#382 id=382 data-nosnippet>382</a>        <span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
+<a href=#383 id=383 data-nosnippet>383</a>            partitions_found.insert(data_file.partition.clone());
+<a href=#384 id=384 data-nosnippet>384</a>        }
+<a href=#385 id=385 data-nosnippet>385</a>
+<a href=#386 id=386 data-nosnippet>386</a>        <span class="macro">assert!</span>(
+<a href=#387 id=387 data-nosnippet>387</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_asia),
+<a href=#388 id=388 data-nosnippet>388</a>            <span class="string">"Missing ASIA partition"
+<a href=#389 id=389 data-nosnippet>389</a>        </span>);
+<a href=#390 id=390 data-nosnippet>390</a>        <span class="macro">assert!</span>(
+<a href=#391 id=391 data-nosnippet>391</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_eu),
+<a href=#392 id=392 data-nosnippet>392</a>            <span class="string">"Missing EU partition"
+<a href=#393 id=393 data-nosnippet>393</a>        </span>);
+<a href=#394 id=394 data-nosnippet>394</a>        <span class="macro">assert!</span>(
+<a href=#395 id=395 data-nosnippet>395</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_us),
+<a href=#396 id=396 data-nosnippet>396</a>            <span class="string">"Missing US partition"
+<a href=#397 id=397 data-nosnippet>397</a>        </span>);
+<a href=#398 id=398 data-nosnippet>398</a>
+<a href=#399 id=399 data-nosnippet>399</a>        <span class="prelude-val">Ok</span>(())
+<a href=#400 id=400 data-nosnippet>400</a>    }
+<a href=#401 id=401 data-nosnippet>401</a>
+<a href=#402 id=402 data-nosnippet>402</a>    <span class="attr">#[tokio::test]
+<a href=#403 id=403 data-nosnippet>403</a>    </span><span class="kw">async fn </span>test_clustered_writer_unsorted_partitions_error() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#404 id=404 data-nosnippet>404</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
+<a href=#405 id=405 data-nosnippet>405</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
+<a href=#406 id=406 data-nosnippet>406</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
+<a href=#407 id=407 data-nosnippet>407</a>            temp_dir.path().to_str().unwrap().to_string(),
+<a href=#408 id=408 data-nosnippet>408</a>        );
+<a href=#409 id=409 data-nosnippet>409</a>        <span class="kw">let </span>file_name_gen =
+<a href=#410 id=410 data-nosnippet>410</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
+<a href=#411 id=411 data-nosnippet>411</a>
+<a href=#412 id=412 data-nosnippet>412</a>        <span class="comment">// Create schema with partition field
+<a href=#413 id=413 data-nosnippet>413</a>        </span><span class="kw">let </span>schema = Arc::new(
+<a href=#414 id=414 data-nosnippet>414</a>            <span class="kw">crate</span>::spec::Schema::builder()
+<a href=#415 id=415 data-nosnippet>415</a>                .with_schema_id(<span class="number">1</span>)
+<a href=#416 id=416 data-nosnippet>416</a>                .with_fields(<span class="macro">vec!</span>[
+<a href=#417 id=417 data-nosnippet>417</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
+<a href=#418 id=418 data-nosnippet>418</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
+<a href=#419 id=419 data-nosnippet>419</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
+<a href=#420 id=420 data-nosnippet>420</a>                        .into(),
+<a href=#421 id=421 data-nosnippet>421</a>                ])
+<a href=#422 id=422 data-nosnippet>422</a>                .build()<span class="question-mark">?</span>,
+<a href=#423 id=423 data-nosnippet>423</a>        );
+<a href=#424 id=424 data-nosnippet>424</a>
+<a href=#425 id=425 data-nosnippet>425</a>        <span class="comment">// Create partition spec
+<a href=#426 id=426 data-nosnippet>426</a>        </span><span class="kw">let </span>partition_spec = <span class="kw">crate</span>::spec::PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
+<a href=#427 id=427 data-nosnippet>427</a>
+<a href=#428 id=428 data-nosnippet>428</a>        <span class="comment">// Create partition keys for different regions
+<a href=#429 id=429 data-nosnippet>429</a>        </span><span class="kw">let </span>partition_value_us =
+<a href=#430 id=430 data-nosnippet>430</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"US"</span>))]);
+<a href=#431 id=431 data-nosnippet>431</a>        <span class="kw">let </span>partition_key_us = <span class="kw">crate</span>::spec::PartitionKey::new(
+<a href=#432 id=432 data-nosnippet>432</a>            partition_spec.clone(),
+<a href=#433 id=433 data-nosnippet>433</a>            schema.clone(),
+<a href=#434 id=434 data-nosnippet>434</a>            partition_value_us.clone(),
+<a href=#435 id=435 data-nosnippet>435</a>        );
+<a href=#436 id=436 data-nosnippet>436</a>
+<a href=#437 id=437 data-nosnippet>437</a>        <span class="kw">let </span>partition_value_eu =
+<a href=#438 id=438 data-nosnippet>438</a>            <span class="kw">crate</span>::spec::Struct::from_iter([<span class="prelude-val">Some</span>(<span class="kw">crate</span>::spec::Literal::string(<span class="string">"EU"</span>))]);
+<a href=#439 id=439 data-nosnippet>439</a>        <span class="kw">let </span>partition_key_eu = <span class="kw">crate</span>::spec::PartitionKey::new(
+<a href=#440 id=440 data-nosnippet>440</a>            partition_spec.clone(),
+<a href=#441 id=441 data-nosnippet>441</a>            schema.clone(),
+<a href=#442 id=442 data-nosnippet>442</a>            partition_value_eu.clone(),
+<a href=#443 id=443 data-nosnippet>443</a>        );
+<a href=#444 id=444 data-nosnippet>444</a>
+<a href=#445 id=445 data-nosnippet>445</a>        <span class="comment">// Create writer builder
+<a href=#446 id=446 data-nosnippet>446</a>        </span><span class="kw">let </span>parquet_writer_builder =
+<a href=#447 id=447 data-nosnippet>447</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
+<a href=#448 id=448 data-nosnippet>448</a>
+<a href=#449 id=449 data-nosnippet>449</a>        <span class="comment">// Create rolling file writer builder
+<a href=#450 id=450 data-nosnippet>450</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
+<a href=#451 id=451 data-nosnippet>451</a>            parquet_writer_builder,
+<a href=#452 id=452 data-nosnippet>452</a>            file_io.clone(),
+<a href=#453 id=453 data-nosnippet>453</a>            location_gen,
+<a href=#454 id=454 data-nosnippet>454</a>            file_name_gen,
+<a href=#455 id=455 data-nosnippet>455</a>        );
+<a href=#456 id=456 data-nosnippet>456</a>
+<a href=#457 id=457 data-nosnippet>457</a>        <span class="comment">// Create data file writer builder
+<a href=#458 id=458 data-nosnippet>458</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
+<a href=#459 id=459 data-nosnippet>459</a>
+<a href=#460 id=460 data-nosnippet>460</a>        <span class="comment">// Create clustered writer
+<a href=#461 id=461 data-nosnippet>461</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = ClusteredWriter::new(data_file_writer_builder);
+<a href=#462 id=462 data-nosnippet>462</a>
+<a href=#463 id=463 data-nosnippet>463</a>        <span class="comment">// Create test data with proper field ID metadata
+<a href=#464 id=464 data-nosnippet>464</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
+<a href=#465 id=465 data-nosnippet>465</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#466 id=466 data-nosnippet>466</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#467 id=467 data-nosnippet>467</a>                <span class="number">1</span>.to_string(),
+<a href=#468 id=468 data-nosnippet>468</a>            )])),
+<a href=#469 id=469 data-nosnippet>469</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#470 id=470 data-nosnippet>470</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#471 id=471 data-nosnippet>471</a>                <span class="number">2</span>.to_string(),
+<a href=#472 id=472 data-nosnippet>472</a>            )])),
+<a href=#473 id=473 data-nosnippet>473</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#474 id=474 data-nosnippet>474</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#475 id=475 data-nosnippet>475</a>                <span class="number">3</span>.to_string(),
+<a href=#476 id=476 data-nosnippet>476</a>            )])),
+<a href=#477 id=477 data-nosnippet>477</a>        ]);
+<a href=#478 id=478 data-nosnippet>478</a>
+<a href=#479 id=479 data-nosnippet>479</a>        <span class="comment">// Create batches for different partitions
+<a href=#480 id=480 data-nosnippet>480</a>        </span><span class="kw">let </span>batch_us = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#481 id=481 data-nosnippet>481</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
+<a href=#482 id=482 data-nosnippet>482</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
+<a href=#483 id=483 data-nosnippet>483</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
+<a href=#484 id=484 data-nosnippet>484</a>        ])<span class="question-mark">?</span>;
+<a href=#485 id=485 data-nosnippet>485</a>
+<a href=#486 id=486 data-nosnippet>486</a>        <span class="kw">let </span>batch_eu = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#487 id=487 data-nosnippet>487</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
+<a href=#488 id=488 data-nosnippet>488</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
+<a href=#489 id=489 data-nosnippet>489</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"EU"</span>, <span class="string">"EU"</span>])),
+<a href=#490 id=490 data-nosnippet>490</a>        ])<span class="question-mark">?</span>;
+<a href=#491 id=491 data-nosnippet>491</a>
+<a href=#492 id=492 data-nosnippet>492</a>        <span class="kw">let </span>batch_us2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#493 id=493 data-nosnippet>493</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">5</span>])),
+<a href=#494 id=494 data-nosnippet>494</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Eve"</span>])),
+<a href=#495 id=495 data-nosnippet>495</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>])),
+<a href=#496 id=496 data-nosnippet>496</a>        ])<span class="question-mark">?</span>;
+<a href=#497 id=497 data-nosnippet>497</a>
+<a href=#498 id=498 data-nosnippet>498</a>        <span class="comment">// Write data to US partition first
+<a href=#499 id=499 data-nosnippet>499</a>        </span>writer.write(partition_key_us.clone(), batch_us).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#500 id=500 data-nosnippet>500</a>
+<a href=#501 id=501 data-nosnippet>501</a>        <span class="comment">// Write data to EU partition (this closes US partition)
+<a href=#502 id=502 data-nosnippet>502</a>        </span>writer.write(partition_key_eu.clone(), batch_eu).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#503 id=503 data-nosnippet>503</a>
+<a href=#504 id=504 data-nosnippet>504</a>        <span class="comment">// Try to write to US partition again - this should fail because data is not sorted
+<a href=#505 id=505 data-nosnippet>505</a>        </span><span class="kw">let </span>result = writer.write(partition_key_us.clone(), batch_us2).<span class="kw">await</span>;
+<a href=#506 id=506 data-nosnippet>506</a>
+<a href=#507 id=507 data-nosnippet>507</a>        <span class="macro">assert!</span>(result.is_err(), <span class="string">"Expected error when writing unsorted data"</span>);
+<a href=#508 id=508 data-nosnippet>508</a>
+<a href=#509 id=509 data-nosnippet>509</a>        <span class="kw">let </span>error = result.unwrap_err();
+<a href=#510 id=510 data-nosnippet>510</a>        <span class="macro">assert!</span>(
+<a href=#511 id=511 data-nosnippet>511</a>            error.to_string().contains(<span class="string">"The input is not sorted"</span>),
+<a href=#512 id=512 data-nosnippet>512</a>            <span class="string">"Expected 'input is not sorted' error, got: {error}"
+<a href=#513 id=513 data-nosnippet>513</a>        </span>);
+<a href=#514 id=514 data-nosnippet>514</a>
+<a href=#515 id=515 data-nosnippet>515</a>        <span class="prelude-val">Ok</span>(())
+<a href=#516 id=516 data-nosnippet>516</a>    }
+<a href=#517 id=517 data-nosnippet>517</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
diff --git a/api/src/iceberg/writer/partitioning/fanout_writer.rs.html b/api/src/iceberg/writer/partitioning/fanout_writer.rs.html
index 909f1df4c..f8719d4d7 100644
--- a/api/src/iceberg/writer/partitioning/fanout_writer.rs.html
+++ b/api/src/iceberg/writer/partitioning/fanout_writer.rs.html
@@ -73,313 +73,312 @@
 <a href=#73 id=73 data-nosnippet>73</a>        <span class="kw">if </span>!<span class="self">self</span>.partition_writers.contains_key(partition_key.data()) {
 <a href=#74 id=74 data-nosnippet>74</a>            <span class="kw">let </span>writer = <span class="self">self
 <a href=#75 id=75 data-nosnippet>75</a>                </span>.inner_builder
-<a href=#76 id=76 data-nosnippet>76</a>                .clone()
-<a href=#77 id=77 data-nosnippet>77</a>                .build(<span class="prelude-val">Some</span>(partition_key.clone()))
-<a href=#78 id=78 data-nosnippet>78</a>                .<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#79 id=79 data-nosnippet>79</a>            <span class="self">self</span>.partition_writers
-<a href=#80 id=80 data-nosnippet>80</a>                .insert(partition_key.data().clone(), writer);
-<a href=#81 id=81 data-nosnippet>81</a>        }
-<a href=#82 id=82 data-nosnippet>82</a>
-<a href=#83 id=83 data-nosnippet>83</a>        <span class="self">self</span>.partition_writers
-<a href=#84 id=84 data-nosnippet>84</a>            .get_mut(partition_key.data())
-<a href=#85 id=85 data-nosnippet>85</a>            .ok_or_else(|| {
-<a href=#86 id=86 data-nosnippet>86</a>                Error::new(
-<a href=#87 id=87 data-nosnippet>87</a>                    ErrorKind::Unexpected,
-<a href=#88 id=88 data-nosnippet>88</a>                    <span class="string">"Failed to get partition writer after creation"</span>,
-<a href=#89 id=89 data-nosnippet>89</a>                )
-<a href=#90 id=90 data-nosnippet>90</a>            })
-<a href=#91 id=91 data-nosnippet>91</a>    }
-<a href=#92 id=92 data-nosnippet>92</a>}
-<a href=#93 id=93 data-nosnippet>93</a>
-<a href=#94 id=94 data-nosnippet>94</a><span class="attr">#[async_trait]
-<a href=#95 id=95 data-nosnippet>95</a></span><span class="kw">impl</span>&lt;B, I, O&gt; PartitioningWriter&lt;I, O&gt; <span class="kw">for </span>FanoutWriter&lt;B, I, O&gt;
-<a href=#96 id=96 data-nosnippet>96</a><span class="kw">where
-<a href=#97 id=97 data-nosnippet>97</a>    </span>B: IcebergWriterBuilder&lt;I, O&gt;,
-<a href=#98 id=98 data-nosnippet>98</a>    I: Send + <span class="lifetime">'static</span>,
-<a href=#99 id=99 data-nosnippet>99</a>    O: IntoIterator + FromIterator&lt;&lt;O <span class="kw">as </span>IntoIterator&gt;::Item&gt; + Send + <span class="lifetime">'static</span>,
-<a href=#100 id=100 data-nosnippet>100</a>    &lt;O <span class="kw">as </span>IntoIterator&gt;::Item: Send + Clone,
-<a href=#101 id=101 data-nosnippet>101</a>{
-<a href=#102 id=102 data-nosnippet>102</a>    <span class="kw">async fn </span>write(<span class="kw-2">&amp;mut </span><span class="self">self</span>, partition_key: PartitionKey, input: I) -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#103 id=103 data-nosnippet>103</a>        <span class="kw">let </span>writer = <span class="self">self</span>.get_or_create_writer(<span class="kw-2">&amp;</span>partition_key).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#104 id=104 data-nosnippet>104</a>        writer.write(input).<span class="kw">await
-<a href=#105 id=105 data-nosnippet>105</a>    </span>}
-<a href=#106 id=106 data-nosnippet>106</a>
-<a href=#107 id=107 data-nosnippet>107</a>    <span class="kw">async fn </span>close(<span class="kw-2">mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;O&gt; {
-<a href=#108 id=108 data-nosnippet>108</a>        <span class="comment">// Close all partition writers
-<a href=#109 id=109 data-nosnippet>109</a>        </span><span class="kw">for </span>(<span class="kw">_</span>, <span class="kw-2">mut </span>writer) <span class="kw">in </span><span class="self">self</span>.partition_writers {
-<a href=#110 id=110 data-nosnippet>110</a>            <span class="self">self</span>.output.extend(writer.close().<span class="kw">await</span><span class="question-mark">?</span>);
-<a href=#111 id=111 data-nosnippet>111</a>        }
-<a href=#112 id=112 data-nosnippet>112</a>
-<a href=#113 id=113 data-nosnippet>113</a>        <span class="comment">// Collect all output items into the output collection type
-<a href=#114 id=114 data-nosnippet>114</a>        </span><span class="prelude-val">Ok</span>(O::from_iter(<span class="self">self</span>.output))
-<a href=#115 id=115 data-nosnippet>115</a>    }
-<a href=#116 id=116 data-nosnippet>116</a>}
-<a href=#117 id=117 data-nosnippet>117</a>
-<a href=#118 id=118 data-nosnippet>118</a><span class="attr">#[cfg(test)]
-<a href=#119 id=119 data-nosnippet>119</a></span><span class="kw">mod </span>tests {
-<a href=#120 id=120 data-nosnippet>120</a>    <span class="kw">use </span>std::collections::HashMap;
-<a href=#121 id=121 data-nosnippet>121</a>    <span class="kw">use </span>std::sync::Arc;
-<a href=#122 id=122 data-nosnippet>122</a>
-<a href=#123 id=123 data-nosnippet>123</a>    <span class="kw">use </span>arrow_array::{Int32Array, RecordBatch, StringArray};
-<a href=#124 id=124 data-nosnippet>124</a>    <span class="kw">use </span>arrow_schema::{DataType, Field, Schema};
-<a href=#125 id=125 data-nosnippet>125</a>    <span class="kw">use </span>parquet::arrow::PARQUET_FIELD_ID_META_KEY;
-<a href=#126 id=126 data-nosnippet>126</a>    <span class="kw">use </span>parquet::file::properties::WriterProperties;
-<a href=#127 id=127 data-nosnippet>127</a>    <span class="kw">use </span>tempfile::TempDir;
-<a href=#128 id=128 data-nosnippet>128</a>
-<a href=#129 id=129 data-nosnippet>129</a>    <span class="kw">use super</span>::<span class="kw-2">*</span>;
-<a href=#130 id=130 data-nosnippet>130</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIOBuilder;
-<a href=#131 id=131 data-nosnippet>131</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{
-<a href=#132 id=132 data-nosnippet>132</a>        DataFileFormat, Literal, NestedField, PartitionKey, PartitionSpec, PrimitiveType, Struct,
-<a href=#133 id=133 data-nosnippet>133</a>        Type,
-<a href=#134 id=134 data-nosnippet>134</a>    };
-<a href=#135 id=135 data-nosnippet>135</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::base_writer::data_file_writer::DataFileWriterBuilder;
-<a href=#136 id=136 data-nosnippet>136</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::ParquetWriterBuilder;
-<a href=#137 id=137 data-nosnippet>137</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::location_generator::{
-<a href=#138 id=138 data-nosnippet>138</a>        DefaultFileNameGenerator, DefaultLocationGenerator,
-<a href=#139 id=139 data-nosnippet>139</a>    };
-<a href=#140 id=140 data-nosnippet>140</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::rolling_writer::RollingFileWriterBuilder;
-<a href=#141 id=141 data-nosnippet>141</a>
-<a href=#142 id=142 data-nosnippet>142</a>    <span class="attr">#[tokio::test]
-<a href=#143 id=143 data-nosnippet>143</a>    </span><span class="kw">async fn </span>test_fanout_writer_single_partition() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#144 id=144 data-nosnippet>144</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
-<a href=#145 id=145 data-nosnippet>145</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
-<a href=#146 id=146 data-nosnippet>146</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
-<a href=#147 id=147 data-nosnippet>147</a>            temp_dir.path().to_str().unwrap().to_string(),
-<a href=#148 id=148 data-nosnippet>148</a>        );
-<a href=#149 id=149 data-nosnippet>149</a>        <span class="kw">let </span>file_name_gen =
-<a href=#150 id=150 data-nosnippet>150</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
-<a href=#151 id=151 data-nosnippet>151</a>
-<a href=#152 id=152 data-nosnippet>152</a>        <span class="comment">// Create schema with partition field
-<a href=#153 id=153 data-nosnippet>153</a>        </span><span class="kw">let </span>schema = Arc::new(
-<a href=#154 id=154 data-nosnippet>154</a>            <span class="kw">crate</span>::spec::Schema::builder()
-<a href=#155 id=155 data-nosnippet>155</a>                .with_schema_id(<span class="number">1</span>)
-<a href=#156 id=156 data-nosnippet>156</a>                .with_fields(<span class="macro">vec!</span>[
-<a href=#157 id=157 data-nosnippet>157</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
-<a href=#158 id=158 data-nosnippet>158</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
-<a href=#159 id=159 data-nosnippet>159</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
-<a href=#160 id=160 data-nosnippet>160</a>                        .into(),
-<a href=#161 id=161 data-nosnippet>161</a>                ])
-<a href=#162 id=162 data-nosnippet>162</a>                .build()<span class="question-mark">?</span>,
-<a href=#163 id=163 data-nosnippet>163</a>        );
-<a href=#164 id=164 data-nosnippet>164</a>
-<a href=#165 id=165 data-nosnippet>165</a>        <span class="comment">// Create partition spec - using the same pattern as data_file_writer tests
-<a href=#166 id=166 data-nosnippet>166</a>        </span><span class="kw">let </span>partition_spec = PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
-<a href=#167 id=167 data-nosnippet>167</a>        <span class="kw">let </span>partition_value = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"US"</span>))]);
-<a href=#168 id=168 data-nosnippet>168</a>        <span class="kw">let </span>partition_key =
-<a href=#169 id=169 data-nosnippet>169</a>            PartitionKey::new(partition_spec, schema.clone(), partition_value.clone());
-<a href=#170 id=170 data-nosnippet>170</a>
-<a href=#171 id=171 data-nosnippet>171</a>        <span class="comment">// Create writer builder
-<a href=#172 id=172 data-nosnippet>172</a>        </span><span class="kw">let </span>parquet_writer_builder =
-<a href=#173 id=173 data-nosnippet>173</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
-<a href=#174 id=174 data-nosnippet>174</a>
-<a href=#175 id=175 data-nosnippet>175</a>        <span class="comment">// Create rolling file writer builder
-<a href=#176 id=176 data-nosnippet>176</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
-<a href=#177 id=177 data-nosnippet>177</a>            parquet_writer_builder,
-<a href=#178 id=178 data-nosnippet>178</a>            file_io.clone(),
-<a href=#179 id=179 data-nosnippet>179</a>            location_gen,
-<a href=#180 id=180 data-nosnippet>180</a>            file_name_gen,
-<a href=#181 id=181 data-nosnippet>181</a>        );
-<a href=#182 id=182 data-nosnippet>182</a>
-<a href=#183 id=183 data-nosnippet>183</a>        <span class="comment">// Create data file writer builder
-<a href=#184 id=184 data-nosnippet>184</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
-<a href=#185 id=185 data-nosnippet>185</a>
-<a href=#186 id=186 data-nosnippet>186</a>        <span class="comment">// Create fanout writer
-<a href=#187 id=187 data-nosnippet>187</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = FanoutWriter::new(data_file_writer_builder);
-<a href=#188 id=188 data-nosnippet>188</a>
-<a href=#189 id=189 data-nosnippet>189</a>        <span class="comment">// Create test data with proper field ID metadata
-<a href=#190 id=190 data-nosnippet>190</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
-<a href=#191 id=191 data-nosnippet>191</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#192 id=192 data-nosnippet>192</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#193 id=193 data-nosnippet>193</a>                <span class="number">1</span>.to_string(),
-<a href=#194 id=194 data-nosnippet>194</a>            )])),
-<a href=#195 id=195 data-nosnippet>195</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#196 id=196 data-nosnippet>196</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#197 id=197 data-nosnippet>197</a>                <span class="number">2</span>.to_string(),
-<a href=#198 id=198 data-nosnippet>198</a>            )])),
-<a href=#199 id=199 data-nosnippet>199</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#200 id=200 data-nosnippet>200</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#201 id=201 data-nosnippet>201</a>                <span class="number">3</span>.to_string(),
-<a href=#202 id=202 data-nosnippet>202</a>            )])),
-<a href=#203 id=203 data-nosnippet>203</a>        ]);
-<a href=#204 id=204 data-nosnippet>204</a>
-<a href=#205 id=205 data-nosnippet>205</a>        <span class="kw">let </span>batch1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#206 id=206 data-nosnippet>206</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
-<a href=#207 id=207 data-nosnippet>207</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
-<a href=#208 id=208 data-nosnippet>208</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
-<a href=#209 id=209 data-nosnippet>209</a>        ])<span class="question-mark">?</span>;
-<a href=#210 id=210 data-nosnippet>210</a>
-<a href=#211 id=211 data-nosnippet>211</a>        <span class="kw">let </span>batch2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#212 id=212 data-nosnippet>212</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
-<a href=#213 id=213 data-nosnippet>213</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
-<a href=#214 id=214 data-nosnippet>214</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
-<a href=#215 id=215 data-nosnippet>215</a>        ])<span class="question-mark">?</span>;
-<a href=#216 id=216 data-nosnippet>216</a>
-<a href=#217 id=217 data-nosnippet>217</a>        <span class="comment">// Write data to the same partition
-<a href=#218 id=218 data-nosnippet>218</a>        </span>writer.write(partition_key.clone(), batch1).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#219 id=219 data-nosnippet>219</a>        writer.write(partition_key.clone(), batch2).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#220 id=220 data-nosnippet>220</a>
-<a href=#221 id=221 data-nosnippet>221</a>        <span class="comment">// Close writer and get data files
-<a href=#222 id=222 data-nosnippet>222</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#223 id=223 data-nosnippet>223</a>
-<a href=#224 id=224 data-nosnippet>224</a>        <span class="comment">// Verify at least one file was created
-<a href=#225 id=225 data-nosnippet>225</a>        </span><span class="macro">assert!</span>(
-<a href=#226 id=226 data-nosnippet>226</a>            !data_files.is_empty(),
-<a href=#227 id=227 data-nosnippet>227</a>            <span class="string">"Expected at least one data file to be created"
-<a href=#228 id=228 data-nosnippet>228</a>        </span>);
-<a href=#229 id=229 data-nosnippet>229</a>
-<a href=#230 id=230 data-nosnippet>230</a>        <span class="comment">// Verify that all data files have the correct partition value
-<a href=#231 id=231 data-nosnippet>231</a>        </span><span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
-<a href=#232 id=232 data-nosnippet>232</a>            <span class="macro">assert_eq!</span>(data_file.partition, partition_value);
-<a href=#233 id=233 data-nosnippet>233</a>        }
-<a href=#234 id=234 data-nosnippet>234</a>
-<a href=#235 id=235 data-nosnippet>235</a>        <span class="prelude-val">Ok</span>(())
-<a href=#236 id=236 data-nosnippet>236</a>    }
-<a href=#237 id=237 data-nosnippet>237</a>
-<a href=#238 id=238 data-nosnippet>238</a>    <span class="attr">#[tokio::test]
-<a href=#239 id=239 data-nosnippet>239</a>    </span><span class="kw">async fn </span>test_fanout_writer_multiple_partitions() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
-<a href=#240 id=240 data-nosnippet>240</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
-<a href=#241 id=241 data-nosnippet>241</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
-<a href=#242 id=242 data-nosnippet>242</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
-<a href=#243 id=243 data-nosnippet>243</a>            temp_dir.path().to_str().unwrap().to_string(),
-<a href=#244 id=244 data-nosnippet>244</a>        );
-<a href=#245 id=245 data-nosnippet>245</a>        <span class="kw">let </span>file_name_gen =
-<a href=#246 id=246 data-nosnippet>246</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
-<a href=#247 id=247 data-nosnippet>247</a>
-<a href=#248 id=248 data-nosnippet>248</a>        <span class="comment">// Create schema with partition field
-<a href=#249 id=249 data-nosnippet>249</a>        </span><span class="kw">let </span>schema = Arc::new(
-<a href=#250 id=250 data-nosnippet>250</a>            <span class="kw">crate</span>::spec::Schema::builder()
-<a href=#251 id=251 data-nosnippet>251</a>                .with_schema_id(<span class="number">1</span>)
-<a href=#252 id=252 data-nosnippet>252</a>                .with_fields(<span class="macro">vec!</span>[
-<a href=#253 id=253 data-nosnippet>253</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
-<a href=#254 id=254 data-nosnippet>254</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
-<a href=#255 id=255 data-nosnippet>255</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
-<a href=#256 id=256 data-nosnippet>256</a>                        .into(),
-<a href=#257 id=257 data-nosnippet>257</a>                ])
-<a href=#258 id=258 data-nosnippet>258</a>                .build()<span class="question-mark">?</span>,
-<a href=#259 id=259 data-nosnippet>259</a>        );
-<a href=#260 id=260 data-nosnippet>260</a>
-<a href=#261 id=261 data-nosnippet>261</a>        <span class="comment">// Create partition spec
-<a href=#262 id=262 data-nosnippet>262</a>        </span><span class="kw">let </span>partition_spec = PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
-<a href=#263 id=263 data-nosnippet>263</a>
-<a href=#264 id=264 data-nosnippet>264</a>        <span class="comment">// Create partition keys for different regions
-<a href=#265 id=265 data-nosnippet>265</a>        </span><span class="kw">let </span>partition_value_us = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"US"</span>))]);
-<a href=#266 id=266 data-nosnippet>266</a>        <span class="kw">let </span>partition_key_us = PartitionKey::new(
-<a href=#267 id=267 data-nosnippet>267</a>            partition_spec.clone(),
-<a href=#268 id=268 data-nosnippet>268</a>            schema.clone(),
-<a href=#269 id=269 data-nosnippet>269</a>            partition_value_us.clone(),
-<a href=#270 id=270 data-nosnippet>270</a>        );
-<a href=#271 id=271 data-nosnippet>271</a>
-<a href=#272 id=272 data-nosnippet>272</a>        <span class="kw">let </span>partition_value_eu = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"EU"</span>))]);
-<a href=#273 id=273 data-nosnippet>273</a>        <span class="kw">let </span>partition_key_eu = PartitionKey::new(
-<a href=#274 id=274 data-nosnippet>274</a>            partition_spec.clone(),
-<a href=#275 id=275 data-nosnippet>275</a>            schema.clone(),
-<a href=#276 id=276 data-nosnippet>276</a>            partition_value_eu.clone(),
-<a href=#277 id=277 data-nosnippet>277</a>        );
-<a href=#278 id=278 data-nosnippet>278</a>
-<a href=#279 id=279 data-nosnippet>279</a>        <span class="kw">let </span>partition_value_asia = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"ASIA"</span>))]);
-<a href=#280 id=280 data-nosnippet>280</a>        <span class="kw">let </span>partition_key_asia = PartitionKey::new(
-<a href=#281 id=281 data-nosnippet>281</a>            partition_spec.clone(),
-<a href=#282 id=282 data-nosnippet>282</a>            schema.clone(),
-<a href=#283 id=283 data-nosnippet>283</a>            partition_value_asia.clone(),
-<a href=#284 id=284 data-nosnippet>284</a>        );
-<a href=#285 id=285 data-nosnippet>285</a>
-<a href=#286 id=286 data-nosnippet>286</a>        <span class="comment">// Create writer builder
-<a href=#287 id=287 data-nosnippet>287</a>        </span><span class="kw">let </span>parquet_writer_builder =
-<a href=#288 id=288 data-nosnippet>288</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
-<a href=#289 id=289 data-nosnippet>289</a>
-<a href=#290 id=290 data-nosnippet>290</a>        <span class="comment">// Create rolling file writer builder
-<a href=#291 id=291 data-nosnippet>291</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
-<a href=#292 id=292 data-nosnippet>292</a>            parquet_writer_builder,
-<a href=#293 id=293 data-nosnippet>293</a>            file_io.clone(),
-<a href=#294 id=294 data-nosnippet>294</a>            location_gen,
-<a href=#295 id=295 data-nosnippet>295</a>            file_name_gen,
-<a href=#296 id=296 data-nosnippet>296</a>        );
-<a href=#297 id=297 data-nosnippet>297</a>
-<a href=#298 id=298 data-nosnippet>298</a>        <span class="comment">// Create data file writer builder
-<a href=#299 id=299 data-nosnippet>299</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
-<a href=#300 id=300 data-nosnippet>300</a>
-<a href=#301 id=301 data-nosnippet>301</a>        <span class="comment">// Create fanout writer
-<a href=#302 id=302 data-nosnippet>302</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = FanoutWriter::new(data_file_writer_builder);
-<a href=#303 id=303 data-nosnippet>303</a>
-<a href=#304 id=304 data-nosnippet>304</a>        <span class="comment">// Create test data with proper field ID metadata
-<a href=#305 id=305 data-nosnippet>305</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
-<a href=#306 id=306 data-nosnippet>306</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#307 id=307 data-nosnippet>307</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#308 id=308 data-nosnippet>308</a>                <span class="number">1</span>.to_string(),
-<a href=#309 id=309 data-nosnippet>309</a>            )])),
-<a href=#310 id=310 data-nosnippet>310</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#311 id=311 data-nosnippet>311</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#312 id=312 data-nosnippet>312</a>                <span class="number">2</span>.to_string(),
-<a href=#313 id=313 data-nosnippet>313</a>            )])),
-<a href=#314 id=314 data-nosnippet>314</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
-<a href=#315 id=315 data-nosnippet>315</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
-<a href=#316 id=316 data-nosnippet>316</a>                <span class="number">3</span>.to_string(),
-<a href=#317 id=317 data-nosnippet>317</a>            )])),
-<a href=#318 id=318 data-nosnippet>318</a>        ]);
-<a href=#319 id=319 data-nosnippet>319</a>
-<a href=#320 id=320 data-nosnippet>320</a>        <span class="comment">// Create batches for different partitions
-<a href=#321 id=321 data-nosnippet>321</a>        </span><span class="kw">let </span>batch_us1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#322 id=322 data-nosnippet>322</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
-<a href=#323 id=323 data-nosnippet>323</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
-<a href=#324 id=324 data-nosnippet>324</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
-<a href=#325 id=325 data-nosnippet>325</a>        ])<span class="question-mark">?</span>;
-<a href=#326 id=326 data-nosnippet>326</a>
-<a href=#327 id=327 data-nosnippet>327</a>        <span class="kw">let </span>batch_eu1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#328 id=328 data-nosnippet>328</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
-<a href=#329 id=329 data-nosnippet>329</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
-<a href=#330 id=330 data-nosnippet>330</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"EU"</span>, <span class="string">"EU"</span>])),
-<a href=#331 id=331 data-nosnippet>331</a>        ])<span class="question-mark">?</span>;
-<a href=#332 id=332 data-nosnippet>332</a>
-<a href=#333 id=333 data-nosnippet>333</a>        <span class="kw">let </span>batch_us2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#334 id=334 data-nosnippet>334</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">5</span>])),
-<a href=#335 id=335 data-nosnippet>335</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Eve"</span>])),
-<a href=#336 id=336 data-nosnippet>336</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>])),
-<a href=#337 id=337 data-nosnippet>337</a>        ])<span class="question-mark">?</span>;
-<a href=#338 id=338 data-nosnippet>338</a>
-<a href=#339 id=339 data-nosnippet>339</a>        <span class="kw">let </span>batch_asia1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
-<a href=#340 id=340 data-nosnippet>340</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">6</span>, <span class="number">7</span>])),
-<a href=#341 id=341 data-nosnippet>341</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Frank"</span>, <span class="string">"Grace"</span>])),
-<a href=#342 id=342 data-nosnippet>342</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"ASIA"</span>, <span class="string">"ASIA"</span>])),
-<a href=#343 id=343 data-nosnippet>343</a>        ])<span class="question-mark">?</span>;
-<a href=#344 id=344 data-nosnippet>344</a>
-<a href=#345 id=345 data-nosnippet>345</a>        <span class="comment">// Write data in mixed partition order to demonstrate fanout capability
-<a href=#346 id=346 data-nosnippet>346</a>        // This is the key difference from ClusteredWriter - we can write to any partition at any time
-<a href=#347 id=347 data-nosnippet>347</a>        </span>writer.write(partition_key_us.clone(), batch_us1).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#348 id=348 data-nosnippet>348</a>        writer.write(partition_key_eu.clone(), batch_eu1).<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#349 id=349 data-nosnippet>349</a>        writer.write(partition_key_us.clone(), batch_us2).<span class="kw">await</span><span class="question-mark">?</span>; <span class="comment">// Back to US partition
-<a href=#350 id=350 data-nosnippet>350</a>        </span>writer
-<a href=#351 id=351 data-nosnippet>351</a>            .write(partition_key_asia.clone(), batch_asia1)
-<a href=#352 id=352 data-nosnippet>352</a>            .<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#353 id=353 data-nosnippet>353</a>
-<a href=#354 id=354 data-nosnippet>354</a>        <span class="comment">// Close writer and get data files
-<a href=#355 id=355 data-nosnippet>355</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
-<a href=#356 id=356 data-nosnippet>356</a>
-<a href=#357 id=357 data-nosnippet>357</a>        <span class="comment">// Verify files were created for all partitions
-<a href=#358 id=358 data-nosnippet>358</a>        </span><span class="macro">assert!</span>(
-<a href=#359 id=359 data-nosnippet>359</a>            data_files.len() &gt;= <span class="number">3</span>,
-<a href=#360 id=360 data-nosnippet>360</a>            <span class="string">"Expected at least 3 data files (one per partition), got {}"</span>,
-<a href=#361 id=361 data-nosnippet>361</a>            data_files.len()
-<a href=#362 id=362 data-nosnippet>362</a>        );
-<a href=#363 id=363 data-nosnippet>363</a>
-<a href=#364 id=364 data-nosnippet>364</a>        <span class="comment">// Verify that we have files for each partition
-<a href=#365 id=365 data-nosnippet>365</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>partitions_found = std::collections::HashSet::new();
-<a href=#366 id=366 data-nosnippet>366</a>        <span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
-<a href=#367 id=367 data-nosnippet>367</a>            partitions_found.insert(data_file.partition.clone());
-<a href=#368 id=368 data-nosnippet>368</a>        }
-<a href=#369 id=369 data-nosnippet>369</a>
-<a href=#370 id=370 data-nosnippet>370</a>        <span class="macro">assert!</span>(
-<a href=#371 id=371 data-nosnippet>371</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_us),
-<a href=#372 id=372 data-nosnippet>372</a>            <span class="string">"Missing US partition"
-<a href=#373 id=373 data-nosnippet>373</a>        </span>);
-<a href=#374 id=374 data-nosnippet>374</a>        <span class="macro">assert!</span>(
-<a href=#375 id=375 data-nosnippet>375</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_eu),
-<a href=#376 id=376 data-nosnippet>376</a>            <span class="string">"Missing EU partition"
-<a href=#377 id=377 data-nosnippet>377</a>        </span>);
-<a href=#378 id=378 data-nosnippet>378</a>        <span class="macro">assert!</span>(
-<a href=#379 id=379 data-nosnippet>379</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_asia),
-<a href=#380 id=380 data-nosnippet>380</a>            <span class="string">"Missing ASIA partition"
-<a href=#381 id=381 data-nosnippet>381</a>        </span>);
-<a href=#382 id=382 data-nosnippet>382</a>
-<a href=#383 id=383 data-nosnippet>383</a>        <span class="prelude-val">Ok</span>(())
-<a href=#384 id=384 data-nosnippet>384</a>    }
-<a href=#385 id=385 data-nosnippet>385</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
+<a href=#76 id=76 data-nosnippet>76</a>                .build(<span class="prelude-val">Some</span>(partition_key.clone()))
+<a href=#77 id=77 data-nosnippet>77</a>                .<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#78 id=78 data-nosnippet>78</a>            <span class="self">self</span>.partition_writers
+<a href=#79 id=79 data-nosnippet>79</a>                .insert(partition_key.data().clone(), writer);
+<a href=#80 id=80 data-nosnippet>80</a>        }
+<a href=#81 id=81 data-nosnippet>81</a>
+<a href=#82 id=82 data-nosnippet>82</a>        <span class="self">self</span>.partition_writers
+<a href=#83 id=83 data-nosnippet>83</a>            .get_mut(partition_key.data())
+<a href=#84 id=84 data-nosnippet>84</a>            .ok_or_else(|| {
+<a href=#85 id=85 data-nosnippet>85</a>                Error::new(
+<a href=#86 id=86 data-nosnippet>86</a>                    ErrorKind::Unexpected,
+<a href=#87 id=87 data-nosnippet>87</a>                    <span class="string">"Failed to get partition writer after creation"</span>,
+<a href=#88 id=88 data-nosnippet>88</a>                )
+<a href=#89 id=89 data-nosnippet>89</a>            })
+<a href=#90 id=90 data-nosnippet>90</a>    }
+<a href=#91 id=91 data-nosnippet>91</a>}
+<a href=#92 id=92 data-nosnippet>92</a>
+<a href=#93 id=93 data-nosnippet>93</a><span class="attr">#[async_trait]
+<a href=#94 id=94 data-nosnippet>94</a></span><span class="kw">impl</span>&lt;B, I, O&gt; PartitioningWriter&lt;I, O&gt; <span class="kw">for </span>FanoutWriter&lt;B, I, O&gt;
+<a href=#95 id=95 data-nosnippet>95</a><span class="kw">where
+<a href=#96 id=96 data-nosnippet>96</a>    </span>B: IcebergWriterBuilder&lt;I, O&gt;,
+<a href=#97 id=97 data-nosnippet>97</a>    I: Send + <span class="lifetime">'static</span>,
+<a href=#98 id=98 data-nosnippet>98</a>    O: IntoIterator + FromIterator&lt;&lt;O <span class="kw">as </span>IntoIterator&gt;::Item&gt; + Send + <span class="lifetime">'static</span>,
+<a href=#99 id=99 data-nosnippet>99</a>    &lt;O <span class="kw">as </span>IntoIterator&gt;::Item: Send + Clone,
+<a href=#100 id=100 data-nosnippet>100</a>{
+<a href=#101 id=101 data-nosnippet>101</a>    <span class="kw">async fn </span>write(<span class="kw-2">&amp;mut </span><span class="self">self</span>, partition_key: PartitionKey, input: I) -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#102 id=102 data-nosnippet>102</a>        <span class="kw">let </span>writer = <span class="self">self</span>.get_or_create_writer(<span class="kw-2">&amp;</span>partition_key).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#103 id=103 data-nosnippet>103</a>        writer.write(input).<span class="kw">await
+<a href=#104 id=104 data-nosnippet>104</a>    </span>}
+<a href=#105 id=105 data-nosnippet>105</a>
+<a href=#106 id=106 data-nosnippet>106</a>    <span class="kw">async fn </span>close(<span class="kw-2">mut </span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;O&gt; {
+<a href=#107 id=107 data-nosnippet>107</a>        <span class="comment">// Close all partition writers
+<a href=#108 id=108 data-nosnippet>108</a>        </span><span class="kw">for </span>(<span class="kw">_</span>, <span class="kw-2">mut </span>writer) <span class="kw">in </span><span class="self">self</span>.partition_writers {
+<a href=#109 id=109 data-nosnippet>109</a>            <span class="self">self</span>.output.extend(writer.close().<span class="kw">await</span><span class="question-mark">?</span>);
+<a href=#110 id=110 data-nosnippet>110</a>        }
+<a href=#111 id=111 data-nosnippet>111</a>
+<a href=#112 id=112 data-nosnippet>112</a>        <span class="comment">// Collect all output items into the output collection type
+<a href=#113 id=113 data-nosnippet>113</a>        </span><span class="prelude-val">Ok</span>(O::from_iter(<span class="self">self</span>.output))
+<a href=#114 id=114 data-nosnippet>114</a>    }
+<a href=#115 id=115 data-nosnippet>115</a>}
+<a href=#116 id=116 data-nosnippet>116</a>
+<a href=#117 id=117 data-nosnippet>117</a><span class="attr">#[cfg(test)]
+<a href=#118 id=118 data-nosnippet>118</a></span><span class="kw">mod </span>tests {
+<a href=#119 id=119 data-nosnippet>119</a>    <span class="kw">use </span>std::collections::HashMap;
+<a href=#120 id=120 data-nosnippet>120</a>    <span class="kw">use </span>std::sync::Arc;
+<a href=#121 id=121 data-nosnippet>121</a>
+<a href=#122 id=122 data-nosnippet>122</a>    <span class="kw">use </span>arrow_array::{Int32Array, RecordBatch, StringArray};
+<a href=#123 id=123 data-nosnippet>123</a>    <span class="kw">use </span>arrow_schema::{DataType, Field, Schema};
+<a href=#124 id=124 data-nosnippet>124</a>    <span class="kw">use </span>parquet::arrow::PARQUET_FIELD_ID_META_KEY;
+<a href=#125 id=125 data-nosnippet>125</a>    <span class="kw">use </span>parquet::file::properties::WriterProperties;
+<a href=#126 id=126 data-nosnippet>126</a>    <span class="kw">use </span>tempfile::TempDir;
+<a href=#127 id=127 data-nosnippet>127</a>
+<a href=#128 id=128 data-nosnippet>128</a>    <span class="kw">use super</span>::<span class="kw-2">*</span>;
+<a href=#129 id=129 data-nosnippet>129</a>    <span class="kw">use </span><span class="kw">crate</span>::io::FileIOBuilder;
+<a href=#130 id=130 data-nosnippet>130</a>    <span class="kw">use </span><span class="kw">crate</span>::spec::{
+<a href=#131 id=131 data-nosnippet>131</a>        DataFileFormat, Literal, NestedField, PartitionKey, PartitionSpec, PrimitiveType, Struct,
+<a href=#132 id=132 data-nosnippet>132</a>        Type,
+<a href=#133 id=133 data-nosnippet>133</a>    };
+<a href=#134 id=134 data-nosnippet>134</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::base_writer::data_file_writer::DataFileWriterBuilder;
+<a href=#135 id=135 data-nosnippet>135</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::ParquetWriterBuilder;
+<a href=#136 id=136 data-nosnippet>136</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::location_generator::{
+<a href=#137 id=137 data-nosnippet>137</a>        DefaultFileNameGenerator, DefaultLocationGenerator,
+<a href=#138 id=138 data-nosnippet>138</a>    };
+<a href=#139 id=139 data-nosnippet>139</a>    <span class="kw">use </span><span class="kw">crate</span>::writer::file_writer::rolling_writer::RollingFileWriterBuilder;
+<a href=#140 id=140 data-nosnippet>140</a>
+<a href=#141 id=141 data-nosnippet>141</a>    <span class="attr">#[tokio::test]
+<a href=#142 id=142 data-nosnippet>142</a>    </span><span class="kw">async fn </span>test_fanout_writer_single_partition() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#143 id=143 data-nosnippet>143</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
+<a href=#144 id=144 data-nosnippet>144</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
+<a href=#145 id=145 data-nosnippet>145</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
+<a href=#146 id=146 data-nosnippet>146</a>            temp_dir.path().to_str().unwrap().to_string(),
+<a href=#147 id=147 data-nosnippet>147</a>        );
+<a href=#148 id=148 data-nosnippet>148</a>        <span class="kw">let </span>file_name_gen =
+<a href=#149 id=149 data-nosnippet>149</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
+<a href=#150 id=150 data-nosnippet>150</a>
+<a href=#151 id=151 data-nosnippet>151</a>        <span class="comment">// Create schema with partition field
+<a href=#152 id=152 data-nosnippet>152</a>        </span><span class="kw">let </span>schema = Arc::new(
+<a href=#153 id=153 data-nosnippet>153</a>            <span class="kw">crate</span>::spec::Schema::builder()
+<a href=#154 id=154 data-nosnippet>154</a>                .with_schema_id(<span class="number">1</span>)
+<a href=#155 id=155 data-nosnippet>155</a>                .with_fields(<span class="macro">vec!</span>[
+<a href=#156 id=156 data-nosnippet>156</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
+<a href=#157 id=157 data-nosnippet>157</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
+<a href=#158 id=158 data-nosnippet>158</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
+<a href=#159 id=159 data-nosnippet>159</a>                        .into(),
+<a href=#160 id=160 data-nosnippet>160</a>                ])
+<a href=#161 id=161 data-nosnippet>161</a>                .build()<span class="question-mark">?</span>,
+<a href=#162 id=162 data-nosnippet>162</a>        );
+<a href=#163 id=163 data-nosnippet>163</a>
+<a href=#164 id=164 data-nosnippet>164</a>        <span class="comment">// Create partition spec - using the same pattern as data_file_writer tests
+<a href=#165 id=165 data-nosnippet>165</a>        </span><span class="kw">let </span>partition_spec = PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
+<a href=#166 id=166 data-nosnippet>166</a>        <span class="kw">let </span>partition_value = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"US"</span>))]);
+<a href=#167 id=167 data-nosnippet>167</a>        <span class="kw">let </span>partition_key =
+<a href=#168 id=168 data-nosnippet>168</a>            PartitionKey::new(partition_spec, schema.clone(), partition_value.clone());
+<a href=#169 id=169 data-nosnippet>169</a>
+<a href=#170 id=170 data-nosnippet>170</a>        <span class="comment">// Create writer builder
+<a href=#171 id=171 data-nosnippet>171</a>        </span><span class="kw">let </span>parquet_writer_builder =
+<a href=#172 id=172 data-nosnippet>172</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
+<a href=#173 id=173 data-nosnippet>173</a>
+<a href=#174 id=174 data-nosnippet>174</a>        <span class="comment">// Create rolling file writer builder
+<a href=#175 id=175 data-nosnippet>175</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
+<a href=#176 id=176 data-nosnippet>176</a>            parquet_writer_builder,
+<a href=#177 id=177 data-nosnippet>177</a>            file_io.clone(),
+<a href=#178 id=178 data-nosnippet>178</a>            location_gen,
+<a href=#179 id=179 data-nosnippet>179</a>            file_name_gen,
+<a href=#180 id=180 data-nosnippet>180</a>        );
+<a href=#181 id=181 data-nosnippet>181</a>
+<a href=#182 id=182 data-nosnippet>182</a>        <span class="comment">// Create data file writer builder
+<a href=#183 id=183 data-nosnippet>183</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
+<a href=#184 id=184 data-nosnippet>184</a>
+<a href=#185 id=185 data-nosnippet>185</a>        <span class="comment">// Create fanout writer
+<a href=#186 id=186 data-nosnippet>186</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = FanoutWriter::new(data_file_writer_builder);
+<a href=#187 id=187 data-nosnippet>187</a>
+<a href=#188 id=188 data-nosnippet>188</a>        <span class="comment">// Create test data with proper field ID metadata
+<a href=#189 id=189 data-nosnippet>189</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
+<a href=#190 id=190 data-nosnippet>190</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#191 id=191 data-nosnippet>191</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#192 id=192 data-nosnippet>192</a>                <span class="number">1</span>.to_string(),
+<a href=#193 id=193 data-nosnippet>193</a>            )])),
+<a href=#194 id=194 data-nosnippet>194</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#195 id=195 data-nosnippet>195</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#196 id=196 data-nosnippet>196</a>                <span class="number">2</span>.to_string(),
+<a href=#197 id=197 data-nosnippet>197</a>            )])),
+<a href=#198 id=198 data-nosnippet>198</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#199 id=199 data-nosnippet>199</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#200 id=200 data-nosnippet>200</a>                <span class="number">3</span>.to_string(),
+<a href=#201 id=201 data-nosnippet>201</a>            )])),
+<a href=#202 id=202 data-nosnippet>202</a>        ]);
+<a href=#203 id=203 data-nosnippet>203</a>
+<a href=#204 id=204 data-nosnippet>204</a>        <span class="kw">let </span>batch1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#205 id=205 data-nosnippet>205</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
+<a href=#206 id=206 data-nosnippet>206</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
+<a href=#207 id=207 data-nosnippet>207</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
+<a href=#208 id=208 data-nosnippet>208</a>        ])<span class="question-mark">?</span>;
+<a href=#209 id=209 data-nosnippet>209</a>
+<a href=#210 id=210 data-nosnippet>210</a>        <span class="kw">let </span>batch2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#211 id=211 data-nosnippet>211</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
+<a href=#212 id=212 data-nosnippet>212</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
+<a href=#213 id=213 data-nosnippet>213</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
+<a href=#214 id=214 data-nosnippet>214</a>        ])<span class="question-mark">?</span>;
+<a href=#215 id=215 data-nosnippet>215</a>
+<a href=#216 id=216 data-nosnippet>216</a>        <span class="comment">// Write data to the same partition
+<a href=#217 id=217 data-nosnippet>217</a>        </span>writer.write(partition_key.clone(), batch1).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#218 id=218 data-nosnippet>218</a>        writer.write(partition_key.clone(), batch2).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#219 id=219 data-nosnippet>219</a>
+<a href=#220 id=220 data-nosnippet>220</a>        <span class="comment">// Close writer and get data files
+<a href=#221 id=221 data-nosnippet>221</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#222 id=222 data-nosnippet>222</a>
+<a href=#223 id=223 data-nosnippet>223</a>        <span class="comment">// Verify at least one file was created
+<a href=#224 id=224 data-nosnippet>224</a>        </span><span class="macro">assert!</span>(
+<a href=#225 id=225 data-nosnippet>225</a>            !data_files.is_empty(),
+<a href=#226 id=226 data-nosnippet>226</a>            <span class="string">"Expected at least one data file to be created"
+<a href=#227 id=227 data-nosnippet>227</a>        </span>);
+<a href=#228 id=228 data-nosnippet>228</a>
+<a href=#229 id=229 data-nosnippet>229</a>        <span class="comment">// Verify that all data files have the correct partition value
+<a href=#230 id=230 data-nosnippet>230</a>        </span><span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
+<a href=#231 id=231 data-nosnippet>231</a>            <span class="macro">assert_eq!</span>(data_file.partition, partition_value);
+<a href=#232 id=232 data-nosnippet>232</a>        }
+<a href=#233 id=233 data-nosnippet>233</a>
+<a href=#234 id=234 data-nosnippet>234</a>        <span class="prelude-val">Ok</span>(())
+<a href=#235 id=235 data-nosnippet>235</a>    }
+<a href=#236 id=236 data-nosnippet>236</a>
+<a href=#237 id=237 data-nosnippet>237</a>    <span class="attr">#[tokio::test]
+<a href=#238 id=238 data-nosnippet>238</a>    </span><span class="kw">async fn </span>test_fanout_writer_multiple_partitions() -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
+<a href=#239 id=239 data-nosnippet>239</a>        <span class="kw">let </span>temp_dir = TempDir::new()<span class="question-mark">?</span>;
+<a href=#240 id=240 data-nosnippet>240</a>        <span class="kw">let </span>file_io = FileIOBuilder::new_fs_io().build()<span class="question-mark">?</span>;
+<a href=#241 id=241 data-nosnippet>241</a>        <span class="kw">let </span>location_gen = DefaultLocationGenerator::with_data_location(
+<a href=#242 id=242 data-nosnippet>242</a>            temp_dir.path().to_str().unwrap().to_string(),
+<a href=#243 id=243 data-nosnippet>243</a>        );
+<a href=#244 id=244 data-nosnippet>244</a>        <span class="kw">let </span>file_name_gen =
+<a href=#245 id=245 data-nosnippet>245</a>            DefaultFileNameGenerator::new(<span class="string">"test"</span>.to_string(), <span class="prelude-val">None</span>, DataFileFormat::Parquet);
+<a href=#246 id=246 data-nosnippet>246</a>
+<a href=#247 id=247 data-nosnippet>247</a>        <span class="comment">// Create schema with partition field
+<a href=#248 id=248 data-nosnippet>248</a>        </span><span class="kw">let </span>schema = Arc::new(
+<a href=#249 id=249 data-nosnippet>249</a>            <span class="kw">crate</span>::spec::Schema::builder()
+<a href=#250 id=250 data-nosnippet>250</a>                .with_schema_id(<span class="number">1</span>)
+<a href=#251 id=251 data-nosnippet>251</a>                .with_fields(<span class="macro">vec!</span>[
+<a href=#252 id=252 data-nosnippet>252</a>                    NestedField::required(<span class="number">1</span>, <span class="string">"id"</span>, Type::Primitive(PrimitiveType::Int)).into(),
+<a href=#253 id=253 data-nosnippet>253</a>                    NestedField::required(<span class="number">2</span>, <span class="string">"name"</span>, Type::Primitive(PrimitiveType::String)).into(),
+<a href=#254 id=254 data-nosnippet>254</a>                    NestedField::required(<span class="number">3</span>, <span class="string">"region"</span>, Type::Primitive(PrimitiveType::String))
+<a href=#255 id=255 data-nosnippet>255</a>                        .into(),
+<a href=#256 id=256 data-nosnippet>256</a>                ])
+<a href=#257 id=257 data-nosnippet>257</a>                .build()<span class="question-mark">?</span>,
+<a href=#258 id=258 data-nosnippet>258</a>        );
+<a href=#259 id=259 data-nosnippet>259</a>
+<a href=#260 id=260 data-nosnippet>260</a>        <span class="comment">// Create partition spec
+<a href=#261 id=261 data-nosnippet>261</a>        </span><span class="kw">let </span>partition_spec = PartitionSpec::builder(schema.clone()).build()<span class="question-mark">?</span>;
+<a href=#262 id=262 data-nosnippet>262</a>
+<a href=#263 id=263 data-nosnippet>263</a>        <span class="comment">// Create partition keys for different regions
+<a href=#264 id=264 data-nosnippet>264</a>        </span><span class="kw">let </span>partition_value_us = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"US"</span>))]);
+<a href=#265 id=265 data-nosnippet>265</a>        <span class="kw">let </span>partition_key_us = PartitionKey::new(
+<a href=#266 id=266 data-nosnippet>266</a>            partition_spec.clone(),
+<a href=#267 id=267 data-nosnippet>267</a>            schema.clone(),
+<a href=#268 id=268 data-nosnippet>268</a>            partition_value_us.clone(),
+<a href=#269 id=269 data-nosnippet>269</a>        );
+<a href=#270 id=270 data-nosnippet>270</a>
+<a href=#271 id=271 data-nosnippet>271</a>        <span class="kw">let </span>partition_value_eu = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"EU"</span>))]);
+<a href=#272 id=272 data-nosnippet>272</a>        <span class="kw">let </span>partition_key_eu = PartitionKey::new(
+<a href=#273 id=273 data-nosnippet>273</a>            partition_spec.clone(),
+<a href=#274 id=274 data-nosnippet>274</a>            schema.clone(),
+<a href=#275 id=275 data-nosnippet>275</a>            partition_value_eu.clone(),
+<a href=#276 id=276 data-nosnippet>276</a>        );
+<a href=#277 id=277 data-nosnippet>277</a>
+<a href=#278 id=278 data-nosnippet>278</a>        <span class="kw">let </span>partition_value_asia = Struct::from_iter([<span class="prelude-val">Some</span>(Literal::string(<span class="string">"ASIA"</span>))]);
+<a href=#279 id=279 data-nosnippet>279</a>        <span class="kw">let </span>partition_key_asia = PartitionKey::new(
+<a href=#280 id=280 data-nosnippet>280</a>            partition_spec.clone(),
+<a href=#281 id=281 data-nosnippet>281</a>            schema.clone(),
+<a href=#282 id=282 data-nosnippet>282</a>            partition_value_asia.clone(),
+<a href=#283 id=283 data-nosnippet>283</a>        );
+<a href=#284 id=284 data-nosnippet>284</a>
+<a href=#285 id=285 data-nosnippet>285</a>        <span class="comment">// Create writer builder
+<a href=#286 id=286 data-nosnippet>286</a>        </span><span class="kw">let </span>parquet_writer_builder =
+<a href=#287 id=287 data-nosnippet>287</a>            ParquetWriterBuilder::new(WriterProperties::builder().build(), schema.clone());
+<a href=#288 id=288 data-nosnippet>288</a>
+<a href=#289 id=289 data-nosnippet>289</a>        <span class="comment">// Create rolling file writer builder
+<a href=#290 id=290 data-nosnippet>290</a>        </span><span class="kw">let </span>rolling_writer_builder = RollingFileWriterBuilder::new_with_default_file_size(
+<a href=#291 id=291 data-nosnippet>291</a>            parquet_writer_builder,
+<a href=#292 id=292 data-nosnippet>292</a>            file_io.clone(),
+<a href=#293 id=293 data-nosnippet>293</a>            location_gen,
+<a href=#294 id=294 data-nosnippet>294</a>            file_name_gen,
+<a href=#295 id=295 data-nosnippet>295</a>        );
+<a href=#296 id=296 data-nosnippet>296</a>
+<a href=#297 id=297 data-nosnippet>297</a>        <span class="comment">// Create data file writer builder
+<a href=#298 id=298 data-nosnippet>298</a>        </span><span class="kw">let </span>data_file_writer_builder = DataFileWriterBuilder::new(rolling_writer_builder);
+<a href=#299 id=299 data-nosnippet>299</a>
+<a href=#300 id=300 data-nosnippet>300</a>        <span class="comment">// Create fanout writer
+<a href=#301 id=301 data-nosnippet>301</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>writer = FanoutWriter::new(data_file_writer_builder);
+<a href=#302 id=302 data-nosnippet>302</a>
+<a href=#303 id=303 data-nosnippet>303</a>        <span class="comment">// Create test data with proper field ID metadata
+<a href=#304 id=304 data-nosnippet>304</a>        </span><span class="kw">let </span>arrow_schema = Schema::new(<span class="macro">vec!</span>[
+<a href=#305 id=305 data-nosnippet>305</a>            Field::new(<span class="string">"id"</span>, DataType::Int32, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#306 id=306 data-nosnippet>306</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#307 id=307 data-nosnippet>307</a>                <span class="number">1</span>.to_string(),
+<a href=#308 id=308 data-nosnippet>308</a>            )])),
+<a href=#309 id=309 data-nosnippet>309</a>            Field::new(<span class="string">"name"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#310 id=310 data-nosnippet>310</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#311 id=311 data-nosnippet>311</a>                <span class="number">2</span>.to_string(),
+<a href=#312 id=312 data-nosnippet>312</a>            )])),
+<a href=#313 id=313 data-nosnippet>313</a>            Field::new(<span class="string">"region"</span>, DataType::Utf8, <span class="bool-val">false</span>).with_metadata(HashMap::from([(
+<a href=#314 id=314 data-nosnippet>314</a>                PARQUET_FIELD_ID_META_KEY.to_string(),
+<a href=#315 id=315 data-nosnippet>315</a>                <span class="number">3</span>.to_string(),
+<a href=#316 id=316 data-nosnippet>316</a>            )])),
+<a href=#317 id=317 data-nosnippet>317</a>        ]);
+<a href=#318 id=318 data-nosnippet>318</a>
+<a href=#319 id=319 data-nosnippet>319</a>        <span class="comment">// Create batches for different partitions
+<a href=#320 id=320 data-nosnippet>320</a>        </span><span class="kw">let </span>batch_us1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#321 id=321 data-nosnippet>321</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>])),
+<a href=#322 id=322 data-nosnippet>322</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Alice"</span>, <span class="string">"Bob"</span>])),
+<a href=#323 id=323 data-nosnippet>323</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>, <span class="string">"US"</span>])),
+<a href=#324 id=324 data-nosnippet>324</a>        ])<span class="question-mark">?</span>;
+<a href=#325 id=325 data-nosnippet>325</a>
+<a href=#326 id=326 data-nosnippet>326</a>        <span class="kw">let </span>batch_eu1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#327 id=327 data-nosnippet>327</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">3</span>, <span class="number">4</span>])),
+<a href=#328 id=328 data-nosnippet>328</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Charlie"</span>, <span class="string">"Dave"</span>])),
+<a href=#329 id=329 data-nosnippet>329</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"EU"</span>, <span class="string">"EU"</span>])),
+<a href=#330 id=330 data-nosnippet>330</a>        ])<span class="question-mark">?</span>;
+<a href=#331 id=331 data-nosnippet>331</a>
+<a href=#332 id=332 data-nosnippet>332</a>        <span class="kw">let </span>batch_us2 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#333 id=333 data-nosnippet>333</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">5</span>])),
+<a href=#334 id=334 data-nosnippet>334</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Eve"</span>])),
+<a href=#335 id=335 data-nosnippet>335</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"US"</span>])),
+<a href=#336 id=336 data-nosnippet>336</a>        ])<span class="question-mark">?</span>;
+<a href=#337 id=337 data-nosnippet>337</a>
+<a href=#338 id=338 data-nosnippet>338</a>        <span class="kw">let </span>batch_asia1 = RecordBatch::try_new(Arc::new(arrow_schema.clone()), <span class="macro">vec!</span>[
+<a href=#339 id=339 data-nosnippet>339</a>            Arc::new(Int32Array::from(<span class="macro">vec!</span>[<span class="number">6</span>, <span class="number">7</span>])),
+<a href=#340 id=340 data-nosnippet>340</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"Frank"</span>, <span class="string">"Grace"</span>])),
+<a href=#341 id=341 data-nosnippet>341</a>            Arc::new(StringArray::from(<span class="macro">vec!</span>[<span class="string">"ASIA"</span>, <span class="string">"ASIA"</span>])),
+<a href=#342 id=342 data-nosnippet>342</a>        ])<span class="question-mark">?</span>;
+<a href=#343 id=343 data-nosnippet>343</a>
+<a href=#344 id=344 data-nosnippet>344</a>        <span class="comment">// Write data in mixed partition order to demonstrate fanout capability
+<a href=#345 id=345 data-nosnippet>345</a>        // This is the key difference from ClusteredWriter - we can write to any partition at any time
+<a href=#346 id=346 data-nosnippet>346</a>        </span>writer.write(partition_key_us.clone(), batch_us1).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#347 id=347 data-nosnippet>347</a>        writer.write(partition_key_eu.clone(), batch_eu1).<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#348 id=348 data-nosnippet>348</a>        writer.write(partition_key_us.clone(), batch_us2).<span class="kw">await</span><span class="question-mark">?</span>; <span class="comment">// Back to US partition
+<a href=#349 id=349 data-nosnippet>349</a>        </span>writer
+<a href=#350 id=350 data-nosnippet>350</a>            .write(partition_key_asia.clone(), batch_asia1)
+<a href=#351 id=351 data-nosnippet>351</a>            .<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#352 id=352 data-nosnippet>352</a>
+<a href=#353 id=353 data-nosnippet>353</a>        <span class="comment">// Close writer and get data files
+<a href=#354 id=354 data-nosnippet>354</a>        </span><span class="kw">let </span>data_files = writer.close().<span class="kw">await</span><span class="question-mark">?</span>;
+<a href=#355 id=355 data-nosnippet>355</a>
+<a href=#356 id=356 data-nosnippet>356</a>        <span class="comment">// Verify files were created for all partitions
+<a href=#357 id=357 data-nosnippet>357</a>        </span><span class="macro">assert!</span>(
+<a href=#358 id=358 data-nosnippet>358</a>            data_files.len() &gt;= <span class="number">3</span>,
+<a href=#359 id=359 data-nosnippet>359</a>            <span class="string">"Expected at least 3 data files (one per partition), got {}"</span>,
+<a href=#360 id=360 data-nosnippet>360</a>            data_files.len()
+<a href=#361 id=361 data-nosnippet>361</a>        );
+<a href=#362 id=362 data-nosnippet>362</a>
+<a href=#363 id=363 data-nosnippet>363</a>        <span class="comment">// Verify that we have files for each partition
+<a href=#364 id=364 data-nosnippet>364</a>        </span><span class="kw">let </span><span class="kw-2">mut </span>partitions_found = std::collections::HashSet::new();
+<a href=#365 id=365 data-nosnippet>365</a>        <span class="kw">for </span>data_file <span class="kw">in </span><span class="kw-2">&amp;</span>data_files {
+<a href=#366 id=366 data-nosnippet>366</a>            partitions_found.insert(data_file.partition.clone());
+<a href=#367 id=367 data-nosnippet>367</a>        }
+<a href=#368 id=368 data-nosnippet>368</a>
+<a href=#369 id=369 data-nosnippet>369</a>        <span class="macro">assert!</span>(
+<a href=#370 id=370 data-nosnippet>370</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_us),
+<a href=#371 id=371 data-nosnippet>371</a>            <span class="string">"Missing US partition"
+<a href=#372 id=372 data-nosnippet>372</a>        </span>);
+<a href=#373 id=373 data-nosnippet>373</a>        <span class="macro">assert!</span>(
+<a href=#374 id=374 data-nosnippet>374</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_eu),
+<a href=#375 id=375 data-nosnippet>375</a>            <span class="string">"Missing EU partition"
+<a href=#376 id=376 data-nosnippet>376</a>        </span>);
+<a href=#377 id=377 data-nosnippet>377</a>        <span class="macro">assert!</span>(
+<a href=#378 id=378 data-nosnippet>378</a>            partitions_found.contains(<span class="kw-2">&amp;</span>partition_value_asia),
+<a href=#379 id=379 data-nosnippet>379</a>            <span class="string">"Missing ASIA partition"
+<a href=#380 id=380 data-nosnippet>380</a>        </span>);
+<a href=#381 id=381 data-nosnippet>381</a>
+<a href=#382 id=382 data-nosnippet>382</a>        <span class="prelude-val">Ok</span>(())
+<a href=#383 id=383 data-nosnippet>383</a>    }
+<a href=#384 id=384 data-nosnippet>384</a>}</code></pre></div></section></main></body></html>
\ No newline at end of file
diff --git a/api/src/iceberg/writer/partitioning/unpartitioned_writer.rs.html b/api/src/iceberg/writer/partitioning/unpartitioned_writer.rs.html
index eeb9691bd..e9c5e607e 100644
--- a/api/src/iceberg/writer/partitioning/unpartitioned_writer.rs.html
+++ b/api/src/iceberg/writer/partitioning/unpartitioned_writer.rs.html
@@ -75,7 +75,7 @@
 <a href=#75 id=75 data-nosnippet>75</a>    </span><span class="kw">pub async fn </span>write(<span class="kw-2">&amp;mut </span><span class="self">self</span>, input: I) -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
 <a href=#76 id=76 data-nosnippet>76</a>        <span class="comment">// Lazily create writer on first write
 <a href=#77 id=77 data-nosnippet>77</a>        </span><span class="kw">if </span><span class="self">self</span>.writer.is_none() {
-<a href=#78 id=78 data-nosnippet>78</a>            <span class="self">self</span>.writer = <span class="prelude-val">Some</span>(<span class="self">self</span>.inner_builder.clone().build(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>);
+<a href=#78 id=78 data-nosnippet>78</a>            <span class="self">self</span>.writer = <span class="prelude-val">Some</span>(<span class="self">self</span>.inner_builder.build(<span class="prelude-val">None</span>).<span class="kw">await</span><span class="question-mark">?</span>);
 <a href=#79 id=79 data-nosnippet>79</a>        }
 <a href=#80 id=80 data-nosnippet>80</a>
 <a href=#81 id=81 data-nosnippet>81</a>        <span class="comment">// Write directly to inner writer
diff --git a/api/trait.impl/core/clone/trait.Clone.js b/api/trait.impl/core/clone/trait.Clone.js
index 8b6f62ba3..0af5670f5 100644
--- a/api/trait.impl/core/clone/trait.Clone.js
+++ b/api/trait.impl/core/clone/trait.Clone.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["iceberg",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> for <a class=\"enum\" href=\"iceberg/arrow/enum.FieldMatchMode.html\" title=\"enum iceberg::arrow::FieldMatchMode\">FieldMatchMode</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> for <a class=\"e [...]
+    var implementors = Object.fromEntries([["iceberg",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> for <a class=\"enum\" href=\"iceberg/arrow/enum.FieldMatchMode.html\" title=\"enum iceberg::arrow::FieldMatchMode\">FieldMatchMode</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> for <a class=\"e [...]
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[33172,1073,314]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[29935,1073,314]}
\ No newline at end of file
diff --git a/api/trait.impl/core/marker/trait.Sync.js b/api/trait.impl/core/marker/trait.Sync.js
index 61a378c59..89f20297d 100644
--- a/api/trait.impl/core/marker/trait.Sync.js
+++ b/api/trait.impl/core/marker/trait.Sync.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["iceberg",[["impl !<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"struct\" href=\"iceberg/puffin/struct.PuffinWriter.html\" title=\"struct iceberg::puffin::PuffinWriter\">PuffinWriter</a>",1,["iceberg::puffin::writer::PuffinWriter"]],["impl !<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\" title=\"trait  [...]
+    var implementors = Object.fromEntries([["iceberg",[["impl !<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\" title=\"trait core::marker::Sync\">Sync</a> for <a class=\"struct\" href=\"iceberg/puffin/struct.PuffinWriter.html\" title=\"struct iceberg::puffin::PuffinWriter\">PuffinWriter</a>",1,["iceberg::puffin::writer::PuffinWriter"]],["impl !<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\" title=\"trait  [...]
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[58482,395,729,1070,391,729,789,1046,2506,375,384,1026,378]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[55383,395,729,1070,391,729,789,1046,2506,375,384,1026,378]}
\ No newline at end of file
diff --git a/api/trait.impl/iceberg/catalog/trait.Catalog.js b/api/trait.impl/iceberg/catalog/trait.Catalog.js
index 6a5715595..818669858 100644
--- a/api/trait.impl/iceberg/catalog/trait.Catalog.js
+++ b/api/trait.impl/iceberg/catalog/trait.Catalog.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["iceberg",[]],["iceberg_catalog_glue",[["impl <a class=\"trait\" href=\"iceberg/catalog/trait.Catalog.html\" title=\"trait iceberg::catalog::Catalog\">Catalog</a> for <a class=\"struct\" href=\"iceberg_catalog_glue/struct.GlueCatalog.html\" title=\"struct iceberg_catalog_glue::GlueCatalog\">GlueCatalog</a>"]]],["iceberg_catalog_hms",[["impl Catalog for <a class=\"struct\" href=\"iceberg_catalog_hms/struct.HmsCatalog.html\" title=\"struct iceber [...]
+    var implementors = Object.fromEntries([["iceberg",[]],["iceberg_catalog_glue",[["impl <a class=\"trait\" href=\"iceberg/catalog/trait.Catalog.html\" title=\"trait iceberg::catalog::Catalog\">Catalog</a> for <a class=\"struct\" href=\"iceberg_catalog_glue/struct.GlueCatalog.html\" title=\"struct iceberg_catalog_glue::GlueCatalog\">GlueCatalog</a>"]]],["iceberg_catalog_hms",[["impl <a class=\"trait\" href=\"iceberg/catalog/trait.Catalog.html\" title=\"trait iceberg::catalog::Catalog\"> [...]
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[14,298,183,189,213,183]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[14,298,292,189,213,183]}
\ No newline at end of file
diff --git a/api/trait.impl/iceberg/catalog/trait.CatalogBuilder.js b/api/trait.impl/iceberg/catalog/trait.CatalogBuilder.js
index a53aa68a0..878cb1be5 100644
--- a/api/trait.impl/iceberg/catalog/trait.CatalogBuilder.js
+++ b/api/trait.impl/iceberg/catalog/trait.CatalogBuilder.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["iceberg",[]],["iceberg_catalog_glue",[["impl <a class=\"trait\" href=\"iceberg/catalog/trait.CatalogBuilder.html\" title=\"trait iceberg::catalog::CatalogBuilder\">CatalogBuilder</a> for <a class=\"struct\" href=\"iceberg_catalog_glue/struct.GlueCatalogBuilder.html\" title=\"struct iceberg_catalog_glue::GlueCatalogBuilder\">GlueCatalogBuilder</a>"]]],["iceberg_catalog_hms",[["impl CatalogBuilder for <a class=\"struct\" href=\"iceberg_catalog_h [...]
+    var implementors = Object.fromEntries([["iceberg",[]],["iceberg_catalog_glue",[["impl <a class=\"trait\" href=\"iceberg/catalog/trait.CatalogBuilder.html\" title=\"trait iceberg::catalog::CatalogBuilder\">CatalogBuilder</a> for <a class=\"struct\" href=\"iceberg_catalog_glue/struct.GlueCatalogBuilder.html\" title=\"struct iceberg_catalog_glue::GlueCatalogBuilder\">GlueCatalogBuilder</a>"]]],["iceberg_catalog_hms",[["impl <a class=\"trait\" href=\"iceberg/catalog/trait.CatalogBuilder. [...]
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[14,340,211,217,241,211]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[14,340,334,217,241,211]}
\ No newline at end of file