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 a326defd deploy: b8f088eed6c79f4ec7e81b4b5f9df2aeb2663473
a326defd is described below
commit a326defd43aee118b310cba413563ebd42fecbcd
Author: liurenjie1024 <[email protected]>
AuthorDate: Fri Nov 1 13:06:56 2024 +0000
deploy: b8f088eed6c79f4ec7e81b4b5f9df2aeb2663473
---
api/iceberg_datafusion/all.html | 2 +-
api/iceberg_datafusion/index.html | 4 +-
api/iceberg_datafusion/sidebar-items.js | 2 +-
.../struct.IcebergTableProvider.html | 10 +-
...tml => struct.IcebergTableProviderFactory.html} | 93 +++-
.../table/table_provider_factory/index.html | 11 +
.../struct.IcebergTableProviderFactory.html | 11 +
.../table_provider_factory/index.html | 1 +
.../table_provider_factory/sidebar-items.js | 1 +
.../struct.IcebergTableProviderFactory.html} | 93 +++-
api/search-index.js | 2 +-
.../iceberg_datafusion-desc-0-.js | 2 +-
api/src-files.js | 2 +-
api/src/iceberg_datafusion/lib.rs.html | 2 +
.../{table.rs.html => table/mod.rs.html} | 14 +-
.../table/table_provider_factory.rs.html | 601 +++++++++++++++++++++
api/trait.impl/core/default/trait.Default.js | 3 +-
api/trait.impl/core/marker/trait.Freeze.js | 2 +-
api/trait.impl/core/marker/trait.Send.js | 2 +-
api/trait.impl/core/marker/trait.Sync.js | 2 +-
api/trait.impl/core/marker/trait.Unpin.js | 2 +-
.../core/panic/unwind_safe/trait.RefUnwindSafe.js | 2 +-
.../core/panic/unwind_safe/trait.UnwindSafe.js | 2 +-
.../table/trait.TableProviderFactory.js | 3 +
24 files changed, 792 insertions(+), 77 deletions(-)
diff --git a/api/iceberg_datafusion/all.html b/api/iceberg_datafusion/all.html
index 5e5f8b4f..21564635 100644
--- a/api/iceberg_datafusion/all.html
+++ b/api/iceberg_datafusion/all.html
@@ -1 +1 @@
-<!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="List of
all items in this crate"><title>List of all items in this
crate</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d
[...]
\ No newline at end of file
+<!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="List of
all items in this crate"><title>List of all items in this
crate</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d
[...]
\ No newline at end of file
diff --git a/api/iceberg_datafusion/index.html
b/api/iceberg_datafusion/index.html
index 9988b296..8b216d5c 100644
--- a/api/iceberg_datafusion/index.html
+++ b/api/iceberg_datafusion/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="API
documentation for the Rust `iceberg_datafusion`
crate."><title>iceberg_datafusion -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans
[...]
+<!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="API
documentation for the Rust `iceberg_datafusion`
crate."><title>iceberg_datafusion -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans
[...]
within an Iceberg <a href="../iceberg/catalog/trait.Catalog.html" title="trait
iceberg::catalog::Catalog"><code>Catalog</code></a>.</div></li><li><div
class="item-name"><a class="struct" href="struct.IcebergTableProvider.html"
title="struct
iceberg_datafusion::IcebergTableProvider">IcebergTableProvider</a></div><div
class="desc docblock-short">Represents a [<code>TableProvider</code>] for the
Iceberg <a href="../iceberg/catalog/trait.Catalog.html" title="trait
iceberg::catalog::Catalog"> [...]
-managing access to a <a href="../iceberg/table/struct.Table.html"
title="struct iceberg::table::Table"><code>Table</code></a>.</div></li></ul><h2
id="functions" class="section-header">Functions<a href="#functions"
class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a
class="fn" href="fn.from_datafusion_error.html" title="fn
iceberg_datafusion::from_datafusion_error">from_datafusion_error</a></div><div
class="desc docblock-short">Converts a datafusion error into an [...]
\ No newline at end of file
+managing access to a <a href="../iceberg/table/struct.Table.html"
title="struct iceberg::table::Table"><code>Table</code></a>.</div></li><li><div
class="item-name"><a class="struct"
href="struct.IcebergTableProviderFactory.html" title="struct
iceberg_datafusion::IcebergTableProviderFactory">IcebergTableProviderFactory</a></div><div
class="desc docblock-short">A factory that implements DataFusion’s
<code>TableProviderFactory</code> to create <code>IcebergTableProvider</code>
instances.</d [...]
\ No newline at end of file
diff --git a/api/iceberg_datafusion/sidebar-items.js
b/api/iceberg_datafusion/sidebar-items.js
index f911df1a..4c924b31 100644
--- a/api/iceberg_datafusion/sidebar-items.js
+++ b/api/iceberg_datafusion/sidebar-items.js
@@ -1 +1 @@
-window.SIDEBAR_ITEMS =
{"fn":["from_datafusion_error","to_datafusion_error"],"struct":["IcebergCatalogProvider","IcebergTableProvider"]};
\ No newline at end of file
+window.SIDEBAR_ITEMS =
{"fn":["from_datafusion_error","to_datafusion_error"],"mod":["table_provider_factory"],"struct":["IcebergCatalogProvider","IcebergTableProvider","IcebergTableProviderFactory"]};
\ No newline at end of file
diff --git a/api/iceberg_datafusion/struct.IcebergTableProvider.html
b/api/iceberg_datafusion/struct.IcebergTableProvider.html
index 3a2872ff..caf3d8bb 100644
--- a/api/iceberg_datafusion/struct.IcebergTableProvider.html
+++ b/api/iceberg_datafusion/struct.IcebergTableProvider.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="Represents
a `TableProvider` for the Iceberg `Catalog`, managing access to a
`Table`."><title>IcebergTableProvider in iceberg_datafusion -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.wof
[...]
+<!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="Represents
a `TableProvider` for the Iceberg `Catalog`, managing access to a
`Table`."><title>IcebergTableProvider in iceberg_datafusion -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.wof
[...]
managing access to a <a href="../iceberg/table/struct.Table.html"
title="struct iceberg::table::Table"><code>Table</code></a>.</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-IcebergTableProvider"
class="impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#43-66">source</a><a
href="#impl-IcebergTableProvider" class="anchor">§</a><h3
class="code-header">impl <a class="struct" href="struct.IcebergTablePr [...]
+</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-IcebergTableProvider"
class="impl"><a class="src rightside"
href="../src/iceberg_datafusion/table/mod.rs.html#45-71">source</a><a
href="#impl-IcebergTableProvider" class="anchor">§</a><h3
class="code-header">impl <a class="struct" href="struct.IcebergTab [...]
using the given table. Can be used to create a table provider from an existing
table regardless of the catalog implementation.</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-TableProvider-for-IcebergTableProvider" class="impl"><a class="src
rightside" href="../src/iceberg_datafusion/table.rs.html#69-105">source</a><a
href="#impl-TableProvider-for-IcebergTableProvider" class="anch [...]
-downcast to a specific implementation.</div></details><details class="toggle
method-toggle" open><summary><section id="method.schema" class="method
trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#74-76">source</a><a
href="#method.schema" class="anchor">§</a><h4 class="code-header">fn <a
class="fn">schema</a>(&self) ->
ArrowSchemaRef</h4></section></summary><div class='docblock'>Get a reference to
the schema for this table</div></details><details [...]
+</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-TableProvider-for-IcebergTableProvider" class="impl"><a class="src
rightside"
href="../src/iceberg_datafusion/table/mod.rs.html#74-110">source</a><a
href="#impl-TableProvider-for-IcebergTableProvider" class=" [...]
+downcast to a specific implementation.</div></details><details class="toggle
method-toggle" open><summary><section id="method.schema" class="method
trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table/mod.rs.html#79-81">source</a><a
href="#method.schema" class="anchor">§</a><h4 class="code-header">fn <a
class="fn">schema</a>(&self) ->
ArrowSchemaRef</h4></section></summary><div class='docblock'>Get a reference to
the schema for this table</div></details><deta [...]
&'life0 self,
_state: &'life1 dyn Session,
projection: <a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum core::option::Option">Option</a><&'life2 <a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"
title="struct alloc::vec::Vec">Vec</a><<a class="primitive"
href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>>,
@@ -15,7 +15,7 @@ downcast to a specific
implementation.</div></details><details class="toggle met
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,</div></h4></section></summary><div
class='docblock'>Create an [<code>ExecutionPlan</code>] for scanning the table
with optionally
-specified <code>projection</code>, <code>filter</code> and <code>limit</code>,
described below. <a>Read more</a></div></details><details class="toggle
method-toggle" open><summary><section id="method.supports_filters_pushdown"
class="method trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#97-104">source</a><a
href="#method.supports_filters_pushdown" class="anchor">§</a><h4
class="code-header">fn <a class="fn">supports_filters_pushdown</a>(
+specified <code>projection</code>, <code>filter</code> and <code>limit</code>,
described below. <a>Read more</a></div></details><details class="toggle
method-toggle" open><summary><section id="method.supports_filters_pushdown"
class="method trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table/mod.rs.html#102-109">source</a><a
href="#method.supports_filters_pushdown" class="anchor">§</a><h4
class="code-header">fn <a class="fn">supports_filters_pushdown</a>(
&self,
filters: &[&Expr],
) -> <a class="enum"
href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"
title="enum core::result::Result">Result</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"
title="struct alloc::vec::Vec">Vec</a><TableProviderFilterPushDown>,
DataFusionError></h4></section></summary><div class='docblock'>Specify if
DataFusion should provide filter expressions to the
diff --git a/api/iceberg_datafusion/struct.IcebergTableProvider.html
b/api/iceberg_datafusion/struct.IcebergTableProviderFactory.html
similarity index 73%
copy from api/iceberg_datafusion/struct.IcebergTableProvider.html
copy to api/iceberg_datafusion/struct.IcebergTableProviderFactory.html
index 3a2872ff..a683b326 100644
--- a/api/iceberg_datafusion/struct.IcebergTableProvider.html
+++ b/api/iceberg_datafusion/struct.IcebergTableProviderFactory.html
@@ -1,35 +1,71 @@
-<!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="Represents
a `TableProvider` for the Iceberg `Catalog`, managing access to a
`Table`."><title>IcebergTableProvider in iceberg_datafusion -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.wof
[...]
-managing access to a <a href="../iceberg/table/struct.Table.html"
title="struct iceberg::table::Table"><code>Table</code></a>.</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-IcebergTableProvider"
class="impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#43-66">source</a><a
href="#impl-IcebergTableProvider" class="anchor">§</a><h3
class="code-header">impl <a class="struct" href="struct.IcebergTablePr [...]
-using the given table. Can be used to create a table provider from an existing
table regardless of the catalog implementation.</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-TableProvider-for-IcebergTableProvider" class="impl"><a class="src
rightside" href="../src/iceberg_datafusion/table.rs.html#69-105">source</a><a
href="#impl-TableProvider-for-IcebergTableProvider" class="anch [...]
-downcast to a specific implementation.</div></details><details class="toggle
method-toggle" open><summary><section id="method.schema" class="method
trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#74-76">source</a><a
href="#method.schema" class="anchor">§</a><h4 class="code-header">fn <a
class="fn">schema</a>(&self) ->
ArrowSchemaRef</h4></section></summary><div class='docblock'>Get a reference to
the schema for this table</div></details><details [...]
+<!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="A factory
that implements DataFusion’s `TableProviderFactory` to create
`IcebergTableProvider` instances."><title>IcebergTableProviderFactory in
iceberg_datafusion -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regul
[...]
+<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
+<p>The following example demonstrates how to create an Iceberg external table
using SQL in
+a DataFusion session with <code>IcebergTableProviderFactory</code>:</p>
+
+<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span
class="kw">use </span>std::sync::Arc;
+
+<span class="kw">use
</span>datafusion::execution::session_state::SessionStateBuilder;
+<span class="kw">use </span>datafusion::prelude::<span class="kw-2">*</span>;
+<span class="kw">use </span>datafusion::sql::TableReference;
+<span class="kw">use </span>iceberg_datafusion::IcebergTableProviderFactory;
+
+<span class="attr">#[tokio::main]
+</span><span class="kw">async fn </span>main() {
+ <span class="comment">// Create a new session context
+ </span><span class="kw">let </span><span class="kw-2">mut </span>state =
SessionStateBuilder::new().with_default_features().build();
+
+ <span class="comment">// Register the IcebergTableProviderFactory in the
session
+ </span>state.table_factories_mut().insert(
+ <span class="string">"ICEBERG"</span>.to_string(),
+ Arc::new(IcebergTableProviderFactory::new()),
+ );
+
+ <span class="kw">let </span>ctx = SessionContext::new_with_state(state);
+
+ <span class="comment">// Define the table reference and the location of
the Iceberg metadata file
+ </span><span class="kw">let </span>table_ref = TableReference::bare(<span
class="string">"my_iceberg_table"</span>);
+ <span class="comment">// /path/to/iceberg/metadata
+ </span><span class="kw">let </span>metadata_file_path = <span
class="macro">format!</span>(
+ <span class="string">"{}/testdata/table_metadata/{}"</span>,
+ <span class="macro">env!</span>(<span
class="string">"CARGO_MANIFEST_DIR"</span>),
+ <span class="string">"TableMetadataV2.json"
+ </span>);
+
+ <span class="comment">// SQL command to create the Iceberg external table
+ </span><span class="kw">let </span>sql = <span
class="macro">format!</span>(
+ <span class="string">"CREATE EXTERNAL TABLE {} STORED AS ICEBERG
LOCATION '{}'"</span>,
+ table_ref, metadata_file_path
+ );
+
+ <span class="comment">// Execute the SQL to create the external table
+ </span>ctx.sql(<span class="kw-2">&</span>sql).<span
class="kw">await</span>.expect(<span class="string">"Failed to create
table"</span>);
+
+ <span class="comment">// Verify the table was created by retrieving the
table provider
+ </span><span class="kw">let </span>table_provider = ctx
+ .table_provider(table_ref)
+ .<span class="kw">await
+ </span>.expect(<span class="string">"Table not found"</span>);
+
+ <span class="macro">println!</span>(<span class="string">"Iceberg external
table created successfully."</span>);
+}</code></pre></div>
+<h2 id="note"><a class="doc-anchor" href="#note">§</a>Note</h2>
+<p>This factory is designed to work with the DataFusion query engine,
+specifically for handling Iceberg tables in external table commands.
+Currently, this implementation supports only reading Iceberg tables, with
+the creation of new tables not yet available.</p>
+<h2 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h2>
+<p>An error will be returned if any unsupported feature, such as partition
columns,
+order expressions, constraints, or column defaults, is detected in the table
creation command.</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-IcebergTableProviderFactory" class="impl"><a class="src rightside"
href="../src/iceberg_datafusion/table/table_provider_factory.rs.html#103-107">source</a><a
href="#impl-IcebergTableProviderFactory" class="anchor">§</a><h3
class="code-header">impl <a cla [...]
&'life0 self,
_state: &'life1 dyn Session,
- projection: <a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum core::option::Option">Option</a><&'life2 <a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"
title="struct alloc::vec::Vec">Vec</a><<a class="primitive"
href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>>,
- filters: &'life3 [Expr],
- _limit: <a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum core::option::Option">Option</a><<a class="primitive"
href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
-) -> <a class="struct"
href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct
core::pin::Pin">Pin</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"
title="struct alloc::boxed::Box">Box</a><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><Output =
DFResult<<a class="struct" href="https://doc.rust-lang.org/n [...]
+ cmd: &'life2 CreateExternalTable,
+) -> <a class="struct"
href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct
core::pin::Pin">Pin</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"
title="struct alloc::boxed::Box">Box</a><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><Output =
DFResult<<a class="struct" href="https://doc.rust-lang.org/n [...]
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
- 'life2: 'async_trait,
- 'life3: 'async_trait,</div></h4></section></summary><div
class='docblock'>Create an [<code>ExecutionPlan</code>] for scanning the table
with optionally
-specified <code>projection</code>, <code>filter</code> and <code>limit</code>,
described below. <a>Read more</a></div></details><details class="toggle
method-toggle" open><summary><section id="method.supports_filters_pushdown"
class="method trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#97-104">source</a><a
href="#method.supports_filters_pushdown" class="anchor">§</a><h4
class="code-header">fn <a class="fn">supports_filters_pushdown</a>(
- &self,
- filters: &[&Expr],
-) -> <a class="enum"
href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"
title="enum core::result::Result">Result</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"
title="struct alloc::vec::Vec">Vec</a><TableProviderFilterPushDown>,
DataFusionError></h4></section></summary><div class='docblock'>Specify if
DataFusion should provide filter expressions to the
-TableProvider to apply <em>during</em> the scan. <a>Read
more</a></div></details><details class="toggle method-toggle"
open><summary><section id="method.constraints" class="method trait-impl"><a
href="#method.constraints" class="anchor">§</a><h4 class="code-header">fn <a
class="fn">constraints</a>(&self) -> <a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum
core::option::Option">Option</a><&Constraints></h4></section></summa
[...]
-Returns: <a>Read more</a></div></details><details class="toggle method-toggle"
open><summary><section id="method.get_table_definition" class="method
trait-impl"><a href="#method.get_table_definition" class="anchor">§</a><h4
class="code-header">fn <a class="fn">get_table_definition</a>(&self) ->
<a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum core::option::Option">Option</a><&<a class="primitive"
href="https://doc.rust-lang.o [...]
- &'life0 self,
- _state: &'life1 dyn Session,
- _input: <a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html"
title="struct alloc::sync::Arc">Arc</a><dyn ExecutionPlan>,
- _overwrite: <a class="primitive"
href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
-) -> <a class="struct"
href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct
core::pin::Pin">Pin</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"
title="struct alloc::boxed::Box">Box</a><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><Output = <a
class="enum" href="https://doc.rust-lang.org/nightly/core/re [...]
- 'life0: 'async_trait,
- 'life1: 'async_trait,
- Self: 'async_trait,</div></h4></section></summary><div
class='docblock'>Return an [<code>ExecutionPlan</code>] to insert data into
this table, if
-supported. <a>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-IcebergTableProvider" class="impl"><a
href="#impl-Freeze-for-IcebergTableProvider" class="anchor">§</a><h3
class="code-header">impl <a class="trait"
href="https://doc.rust-lang.org/nightly/core/marker/trait.Free [...]
+ 'life2: 'async_trait,</div></h4></section></summary><div
class='docblock'>Create a TableProvider with the given
url</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-IcebergTableProviderFactory" class="impl"><a
href="#impl-Freeze-for-IcebergTableProviderFactory" class="anchor">§</a><h [...]
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#141">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/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#210">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#217">source</a><a
href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a
href= [...]
@@ -131,5 +167,6 @@ builds.</div></details></div></details><details
class="toggle implementors-toggl
V: MultiLane<T>,</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) -> 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<T> WithSubscriber for T< [...]
S: <a class="trait"
href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"
title="trait
core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div
class='docblock'>Attaches the provided <a
href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details
class="toggle method-toggle" open><summary><section
id="method.with_current_subscriber" class="method trait-impl"><a
href="#method.with_current_subscriber" class="anchor">§</a><h4
class="code-header">fn <a class="fn">with_current_subscriber</a>(self) ->
WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches
the current <a href="crate::dispatcher#setting-the-default-subscriber">defaul
[...]
-[<code>WithDispatch</code>] wrapper. <a>Read
more</a></div></details></div></details><section id="impl-MaybeSend-for-T"
class="impl"><a href="#impl-MaybeSend-for-T" class="anchor">§</a><h3
class="code-header">impl<T> MaybeSend for T<div class="where">where
+[<code>WithDispatch</code>] wrapper. <a>Read
more</a></div></details></div></details><section id="impl-Allocation-for-T"
class="impl"><a href="#impl-Allocation-for-T" class="anchor">§</a><h3
class="code-header">impl<T> Allocation for T<div class="where">where
+ T: <a class="trait"
href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html"
title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</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>,</div></h3></section><section
id="impl-MaybeSen [...]
T: <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></div></section></div></main></body></html>
\ No newline at end of file
diff --git a/api/iceberg_datafusion/table/table_provider_factory/index.html
b/api/iceberg_datafusion/table/table_provider_factory/index.html
new file mode 100644
index 00000000..307bfb8e
--- /dev/null
+++ b/api/iceberg_datafusion/table/table_provider_factory/index.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="refresh"
content="0;URL=../../../iceberg_datafusion/table_provider_factory/index.html">
+ <title>Redirection</title>
+</head>
+<body>
+ <p>Redirecting to <a
href="../../../iceberg_datafusion/table_provider_factory/index.html">../../../iceberg_datafusion/table_provider_factory/index.html</a>...</p>
+
<script>location.replace("../../../iceberg_datafusion/table_provider_factory/index.html"
+ location.search + location.hash);</script>
+</body>
+</html>
\ No newline at end of file
diff --git
a/api/iceberg_datafusion/table/table_provider_factory/struct.IcebergTableProviderFactory.html
b/api/iceberg_datafusion/table/table_provider_factory/struct.IcebergTableProviderFactory.html
new file mode 100644
index 00000000..201c2ab2
--- /dev/null
+++
b/api/iceberg_datafusion/table/table_provider_factory/struct.IcebergTableProviderFactory.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="refresh"
content="0;URL=../../../iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html">
+ <title>Redirection</title>
+</head>
+<body>
+ <p>Redirecting to <a
href="../../../iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html">../../../iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html</a>...</p>
+
<script>location.replace("../../../iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html"
+ location.search + location.hash);</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/api/iceberg_datafusion/table_provider_factory/index.html
b/api/iceberg_datafusion/table_provider_factory/index.html
new file mode 100644
index 00000000..d0ad8f88
--- /dev/null
+++ b/api/iceberg_datafusion/table_provider_factory/index.html
@@ -0,0 +1 @@
+<!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="API
documentation for the Rust `table_provider_factory` mod in crate
`iceberg_datafusion`."><title>iceberg_datafusion::table_provider_factory -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.tt
[...]
\ No newline at end of file
diff --git a/api/iceberg_datafusion/table_provider_factory/sidebar-items.js
b/api/iceberg_datafusion/table_provider_factory/sidebar-items.js
new file mode 100644
index 00000000..9f558844
--- /dev/null
+++ b/api/iceberg_datafusion/table_provider_factory/sidebar-items.js
@@ -0,0 +1 @@
+window.SIDEBAR_ITEMS = {"struct":["IcebergTableProviderFactory"]};
\ No newline at end of file
diff --git a/api/iceberg_datafusion/struct.IcebergTableProvider.html
b/api/iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html
similarity index 75%
copy from api/iceberg_datafusion/struct.IcebergTableProvider.html
copy to
api/iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html
index 3a2872ff..32f3e160 100644
--- a/api/iceberg_datafusion/struct.IcebergTableProvider.html
+++
b/api/iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html
@@ -1,35 +1,71 @@
-<!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="Represents
a `TableProvider` for the Iceberg `Catalog`, managing access to a
`Table`."><title>IcebergTableProvider in iceberg_datafusion -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.wof
[...]
-managing access to a <a href="../iceberg/table/struct.Table.html"
title="struct iceberg::table::Table"><code>Table</code></a>.</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-IcebergTableProvider"
class="impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#43-66">source</a><a
href="#impl-IcebergTableProvider" class="anchor">§</a><h3
class="code-header">impl <a class="struct" href="struct.IcebergTablePr [...]
-using the given table. Can be used to create a table provider from an existing
table regardless of the catalog implementation.</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-TableProvider-for-IcebergTableProvider" class="impl"><a class="src
rightside" href="../src/iceberg_datafusion/table.rs.html#69-105">source</a><a
href="#impl-TableProvider-for-IcebergTableProvider" class="anch [...]
-downcast to a specific implementation.</div></details><details class="toggle
method-toggle" open><summary><section id="method.schema" class="method
trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#74-76">source</a><a
href="#method.schema" class="anchor">§</a><h4 class="code-header">fn <a
class="fn">schema</a>(&self) ->
ArrowSchemaRef</h4></section></summary><div class='docblock'>Get a reference to
the schema for this table</div></details><details [...]
+<!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="A factory
that implements DataFusion’s `TableProviderFactory` to create
`IcebergTableProvider` instances."><title>IcebergTableProviderFactory in
iceberg_datafusion::table_provider_factory -
Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("before
[...]
+<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
+<p>The following example demonstrates how to create an Iceberg external table
using SQL in
+a DataFusion session with <code>IcebergTableProviderFactory</code>:</p>
+
+<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span
class="kw">use </span>std::sync::Arc;
+
+<span class="kw">use
</span>datafusion::execution::session_state::SessionStateBuilder;
+<span class="kw">use </span>datafusion::prelude::<span class="kw-2">*</span>;
+<span class="kw">use </span>datafusion::sql::TableReference;
+<span class="kw">use </span>iceberg_datafusion::IcebergTableProviderFactory;
+
+<span class="attr">#[tokio::main]
+</span><span class="kw">async fn </span>main() {
+ <span class="comment">// Create a new session context
+ </span><span class="kw">let </span><span class="kw-2">mut </span>state =
SessionStateBuilder::new().with_default_features().build();
+
+ <span class="comment">// Register the IcebergTableProviderFactory in the
session
+ </span>state.table_factories_mut().insert(
+ <span class="string">"ICEBERG"</span>.to_string(),
+ Arc::new(IcebergTableProviderFactory::new()),
+ );
+
+ <span class="kw">let </span>ctx = SessionContext::new_with_state(state);
+
+ <span class="comment">// Define the table reference and the location of
the Iceberg metadata file
+ </span><span class="kw">let </span>table_ref = TableReference::bare(<span
class="string">"my_iceberg_table"</span>);
+ <span class="comment">// /path/to/iceberg/metadata
+ </span><span class="kw">let </span>metadata_file_path = <span
class="macro">format!</span>(
+ <span class="string">"{}/testdata/table_metadata/{}"</span>,
+ <span class="macro">env!</span>(<span
class="string">"CARGO_MANIFEST_DIR"</span>),
+ <span class="string">"TableMetadataV2.json"
+ </span>);
+
+ <span class="comment">// SQL command to create the Iceberg external table
+ </span><span class="kw">let </span>sql = <span
class="macro">format!</span>(
+ <span class="string">"CREATE EXTERNAL TABLE {} STORED AS ICEBERG
LOCATION '{}'"</span>,
+ table_ref, metadata_file_path
+ );
+
+ <span class="comment">// Execute the SQL to create the external table
+ </span>ctx.sql(<span class="kw-2">&</span>sql).<span
class="kw">await</span>.expect(<span class="string">"Failed to create
table"</span>);
+
+ <span class="comment">// Verify the table was created by retrieving the
table provider
+ </span><span class="kw">let </span>table_provider = ctx
+ .table_provider(table_ref)
+ .<span class="kw">await
+ </span>.expect(<span class="string">"Table not found"</span>);
+
+ <span class="macro">println!</span>(<span class="string">"Iceberg external
table created successfully."</span>);
+}</code></pre></div>
+<h2 id="note"><a class="doc-anchor" href="#note">§</a>Note</h2>
+<p>This factory is designed to work with the DataFusion query engine,
+specifically for handling Iceberg tables in external table commands.
+Currently, this implementation supports only reading Iceberg tables, with
+the creation of new tables not yet available.</p>
+<h2 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h2>
+<p>An error will be returned if any unsupported feature, such as partition
columns,
+order expressions, constraints, or column defaults, is detected in the table
creation command.</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-IcebergTableProviderFactory" class="impl"><a class="src rightside"
href="../../src/iceberg_datafusion/table/table_provider_factory.rs.html#103-107">source</a><a
href="#impl-IcebergTableProviderFactory" class="anchor">§</a><h3
class="code-header">impl <a [...]
&'life0 self,
_state: &'life1 dyn Session,
- projection: <a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum core::option::Option">Option</a><&'life2 <a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"
title="struct alloc::vec::Vec">Vec</a><<a class="primitive"
href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>>,
- filters: &'life3 [Expr],
- _limit: <a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum core::option::Option">Option</a><<a class="primitive"
href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>,
-) -> <a class="struct"
href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct
core::pin::Pin">Pin</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"
title="struct alloc::boxed::Box">Box</a><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><Output =
DFResult<<a class="struct" href="https://doc.rust-lang.org/n [...]
+ cmd: &'life2 CreateExternalTable,
+) -> <a class="struct"
href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct
core::pin::Pin">Pin</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"
title="struct alloc::boxed::Box">Box</a><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><Output =
DFResult<<a class="struct" href="https://doc.rust-lang.org/n [...]
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
- 'life2: 'async_trait,
- 'life3: 'async_trait,</div></h4></section></summary><div
class='docblock'>Create an [<code>ExecutionPlan</code>] for scanning the table
with optionally
-specified <code>projection</code>, <code>filter</code> and <code>limit</code>,
described below. <a>Read more</a></div></details><details class="toggle
method-toggle" open><summary><section id="method.supports_filters_pushdown"
class="method trait-impl"><a class="src rightside"
href="../src/iceberg_datafusion/table.rs.html#97-104">source</a><a
href="#method.supports_filters_pushdown" class="anchor">§</a><h4
class="code-header">fn <a class="fn">supports_filters_pushdown</a>(
- &self,
- filters: &[&Expr],
-) -> <a class="enum"
href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"
title="enum core::result::Result">Result</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"
title="struct alloc::vec::Vec">Vec</a><TableProviderFilterPushDown>,
DataFusionError></h4></section></summary><div class='docblock'>Specify if
DataFusion should provide filter expressions to the
-TableProvider to apply <em>during</em> the scan. <a>Read
more</a></div></details><details class="toggle method-toggle"
open><summary><section id="method.constraints" class="method trait-impl"><a
href="#method.constraints" class="anchor">§</a><h4 class="code-header">fn <a
class="fn">constraints</a>(&self) -> <a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum
core::option::Option">Option</a><&Constraints></h4></section></summa
[...]
-Returns: <a>Read more</a></div></details><details class="toggle method-toggle"
open><summary><section id="method.get_table_definition" class="method
trait-impl"><a href="#method.get_table_definition" class="anchor">§</a><h4
class="code-header">fn <a class="fn">get_table_definition</a>(&self) ->
<a class="enum"
href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"
title="enum core::option::Option">Option</a><&<a class="primitive"
href="https://doc.rust-lang.o [...]
- &'life0 self,
- _state: &'life1 dyn Session,
- _input: <a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html"
title="struct alloc::sync::Arc">Arc</a><dyn ExecutionPlan>,
- _overwrite: <a class="primitive"
href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
-) -> <a class="struct"
href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct
core::pin::Pin">Pin</a><<a class="struct"
href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"
title="struct alloc::boxed::Box">Box</a><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><Output = <a
class="enum" href="https://doc.rust-lang.org/nightly/core/re [...]
- 'life0: 'async_trait,
- 'life1: 'async_trait,
- Self: 'async_trait,</div></h4></section></summary><div
class='docblock'>Return an [<code>ExecutionPlan</code>] to insert data into
this table, if
-supported. <a>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-IcebergTableProvider" class="impl"><a
href="#impl-Freeze-for-IcebergTableProvider" class="anchor">§</a><h3
class="code-header">impl <a class="trait"
href="https://doc.rust-lang.org/nightly/core/marker/trait.Free [...]
+ 'life2: 'async_trait,</div></h4></section></summary><div
class='docblock'>Create a TableProvider with the given
url</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-IcebergTableProviderFactory" class="impl"><a
href="#impl-Freeze-for-IcebergTableProviderFactory" class="anchor">§</a><h [...]
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#141">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/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#210">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#217">source</a><a
href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a
href= [...]
@@ -131,5 +167,6 @@ builds.</div></details></div></details><details
class="toggle implementors-toggl
V: MultiLane<T>,</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) -> 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<T> WithSubscriber for T< [...]
S: <a class="trait"
href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"
title="trait
core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div
class='docblock'>Attaches the provided <a
href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details
class="toggle method-toggle" open><summary><section
id="method.with_current_subscriber" class="method trait-impl"><a
href="#method.with_current_subscriber" class="anchor">§</a><h4
class="code-header">fn <a class="fn">with_current_subscriber</a>(self) ->
WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches
the current <a href="crate::dispatcher#setting-the-default-subscriber">defaul
[...]
-[<code>WithDispatch</code>] wrapper. <a>Read
more</a></div></details></div></details><section id="impl-MaybeSend-for-T"
class="impl"><a href="#impl-MaybeSend-for-T" class="anchor">§</a><h3
class="code-header">impl<T> MaybeSend for T<div class="where">where
+[<code>WithDispatch</code>] wrapper. <a>Read
more</a></div></details></div></details><section id="impl-Allocation-for-T"
class="impl"><a href="#impl-Allocation-for-T" class="anchor">§</a><h3
class="code-header">impl<T> Allocation for T<div class="where">where
+ T: <a class="trait"
href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html"
title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</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>,</div></h3></section><section
id="impl-MaybeSen [...]
T: <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></div></section></div></main></body></html>
\ No newline at end of file
diff --git a/api/search-index.js b/api/search-index.js
index 6cee6132..066a81c8 100644
--- a/api/search-index.js
+++ b/api/search-index.js
@@ -5,7 +5,7 @@ var searchIndex = new Map(JSON.parse('[\
["iceberg_catalog_memory",{"t":"FNNNNNNNNNNNNNNNNNNNNNNNNNNN","n":["MemoryCatalog","borrow","borrow_mut","create_namespace","create_table","deref","deref_mut","drop","drop_namespace","drop_table","fmt","from","get_namespace","init","into","list_namespaces","list_tables","load_table","namespace_exists","new","rename_table","table_exists","try_from","try_into","type_id","update_namespace","update_table","vzip"],"q":[[0,"iceberg_catalog_memory"],[28,"iceberg_catalog_memory::catalog"],[29,"i
[...]
["iceberg_catalog_rest",{"t":"FFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","n":["RestCatalog","RestCatalogConfig","borrow","borrow","borrow_mut","borrow_mut","builder","clone","clone_into","create_namespace","create_table","deref","deref","deref_mut","deref_mut","drop","drop","drop_namespace","drop_table","fmt","fmt","from","from","get_namespace","init","init","into","into","list_namespaces","list_tables","load_table","namespace_exists","new","rename_table","table_exists","to_owned","
[...]
["iceberg_catalog_sql",{"t":"PPGFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","n":["DollarNumeric","QMark","SqlBindStyle","SqlCatalog","SqlCatalogConfig","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","builder","create_namespace","create_table","deref","deref","deref","deref_mut","deref_mut","deref_mut","drop","drop","drop","drop_namespace","drop_table","eq","fmt","fmt","fmt","from","from","from","get_namespace","init","init","init","into","into","into","l
[...]
-["iceberg_datafusion",{"t":"FFNNNNNNNNNNNNNNHNNNNNNNNNNHNNNNNNNNNN","n":["IcebergCatalogProvider","IcebergTableProvider","as_any","as_any","borrow","borrow","borrow_mut","borrow_mut","deref","deref","deref_mut","deref_mut","drop","drop","from","from","from_datafusion_error","init","init","into","into","scan","schema","schema","schema_names","supports_filters_pushdown","table_type","to_datafusion_error","try_from","try_from","try_into","try_into","try_new","try_new_from_table","type_id","
[...]
+["iceberg_datafusion",{"t":"FFFNNNNNNNNNNNNNNHNNNNNNNNNCNHNNNNNNNNNNFNNNNNNNNNNNNNNN","n":["IcebergCatalogProvider","IcebergTableProvider","IcebergTableProviderFactory","as_any","as_any","borrow","borrow","borrow_mut","borrow_mut","deref","deref","deref_mut","deref_mut","drop","drop","from","from","from_datafusion_error","init","init","into","into","scan","schema","schema","schema_names","supports_filters_pushdown","table_provider_factory","table_type","to_datafusion_error","try_from","t
[...]
["iceberg_test_utils",{"t":"CHHFNNNNNNNNNNNNN","n":["docker","normalize_test_name","set_up","DockerCompose","borrow","borrow_mut","drop","fmt","from","get_container_ip","into","new","project_name","run","try_from","try_into","type_id"],"q":[[0,"iceberg_test_utils"],[3,"iceberg_test_utils::docker"],[17,"alloc::string"],[18,"core::fmt"],[19,"core::net::ip_addr"],[20,"core::convert"],[21,"core::result"],[22,"core::any"],[23,"iceberg_test_utils::common"]],"i":[0,0,0,0,6,6,6,6,6,6,6,6,6,6,6,6
[...]
]'));
if (typeof exports !== 'undefined') exports.searchIndex = searchIndex;
diff --git a/api/search.desc/iceberg_datafusion/iceberg_datafusion-desc-0-.js
b/api/search.desc/iceberg_datafusion/iceberg_datafusion-desc-0-.js
index 2dfa2c7b..b4bbdb12 100644
--- a/api/search.desc/iceberg_datafusion/iceberg_datafusion-desc-0-.js
+++ b/api/search.desc/iceberg_datafusion/iceberg_datafusion-desc-0-.js
@@ -1 +1 @@
-searchState.loadedDescShard("iceberg_datafusion", 0, "Provides an interface to
manage and access multiple schemas\nRepresents a <code>TableProvider</code> for
the Iceberg <code>Catalog</code>, …\nReturns the argument unchanged.\nReturns
the argument unchanged.\nConverts a datafusion error into an iceberg
error.\nCalls <code>U::from(self)</code>.\nCalls
<code>U::from(self)</code>.\nConverts an iceberg error into a datafusion
error.\nAsynchronously tries to construct a new …\nAsynchronousl [...]
\ No newline at end of file
+searchState.loadedDescShard("iceberg_datafusion", 0, "Provides an interface to
manage and access multiple schemas\nRepresents a <code>TableProvider</code> for
the Iceberg <code>Catalog</code>, …\nA factory that implements DataFusion’s
…\nReturns the argument unchanged.\nReturns the argument unchanged.\nConverts a
datafusion error into an iceberg error.\nCalls
<code>U::from(self)</code>.\nCalls <code>U::from(self)</code>.\nConverts an
iceberg error into a datafusion error.\nAsynchronously [...]
\ No newline at end of file
diff --git a/api/src-files.js b/api/src-files.js
index 52f64881..a39f28ed 100644
--- a/api/src-files.js
+++ b/api/src-files.js
@@ -5,7 +5,7 @@ var srcIndex = new Map(JSON.parse('[\
["iceberg_catalog_memory",["",[],["catalog.rs","lib.rs","namespace_state.rs"]]],\
["iceberg_catalog_rest",["",[],["catalog.rs","client.rs","lib.rs","types.rs"]]],\
["iceberg_catalog_sql",["",[],["catalog.rs","error.rs","lib.rs"]]],\
-["iceberg_datafusion",["",[["physical_plan",[],["expr_to_predicate.rs","mod.rs","scan.rs"]]],["catalog.rs","error.rs","lib.rs","schema.rs","table.rs"]]],\
+["iceberg_datafusion",["",[["physical_plan",[],["expr_to_predicate.rs","mod.rs","scan.rs"]],["table",[],["mod.rs","table_provider_factory.rs"]]],["catalog.rs","error.rs","lib.rs","schema.rs"]]],\
["iceberg_test_utils",["",[],["cmd.rs","docker.rs","lib.rs"]]]\
]'));
createSrcSidebar();
diff --git a/api/src/iceberg_datafusion/lib.rs.html
b/api/src/iceberg_datafusion/lib.rs.html
index ee485e8f..0c7dba0b 100644
--- a/api/src/iceberg_datafusion/lib.rs.html
+++ b/api/src/iceberg_datafusion/lib.rs.html
@@ -25,6 +25,7 @@
<a href="#25" id="25">25</a>
<a href="#26" id="26">26</a>
<a href="#27" id="27">27</a>
+<a href="#28" id="28">28</a>
</pre></div><pre class="rust"><code><span class="comment">// Licensed to the
Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -51,5 +52,6 @@
<span class="kw">mod </span>physical_plan;
<span class="kw">mod </span>schema;
<span class="kw">mod </span>table;
+<span class="kw">pub use
</span>table::table_provider_factory::IcebergTableProviderFactory;
<span class="kw">pub use </span>table::<span class="kw-2">*</span>;
</code></pre></div></section></main></body></html>
\ No newline at end of file
diff --git a/api/src/iceberg_datafusion/table.rs.html
b/api/src/iceberg_datafusion/table/mod.rs.html
similarity index 84%
rename from api/src/iceberg_datafusion/table.rs.html
rename to api/src/iceberg_datafusion/table/mod.rs.html
index 9485734a..ca8500a9 100644
--- a/api/src/iceberg_datafusion/table.rs.html
+++ b/api/src/iceberg_datafusion/table/mod.rs.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="Source of
the Rust file `crates/integrations/datafusion/src/table.rs`."><title>table.rs -
source</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,Fira
[...]
+<!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="Source of
the Rust file `crates/integrations/datafusion/src/table/mod.rs`."><title>mod.rs
-
source</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,Fi
[...]
<a href="#2" id="2">2</a>
<a href="#3" id="3">3</a>
<a href="#4" id="4">4</a>
@@ -157,6 +157,11 @@
<a href="#157" id="157">157</a>
<a href="#158" id="158">158</a>
<a href="#159" id="159">159</a>
+<a href="#160" id="160">160</a>
+<a href="#161" id="161">161</a>
+<a href="#162" id="162">162</a>
+<a href="#163" id="163">163</a>
+<a href="#164" id="164">164</a>
</pre></div><pre class="rust"><code><span class="comment">// Licensed to the
Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
@@ -174,7 +179,9 @@
// specific language governing permissions and limitations
// under the License.
-</span><span class="kw">use </span>std::any::Any;
+</span><span class="kw">pub mod </span>table_provider_factory;
+
+<span class="kw">use </span>std::any::Any;
<span class="kw">use </span>std::sync::Arc;
<span class="kw">use </span>async_trait::async_trait;
@@ -200,6 +207,9 @@
}
<span class="kw">impl </span>IcebergTableProvider {
+ <span class="kw">pub</span>(<span class="kw">crate</span>) <span
class="kw">fn </span>new(table: Table, schema: ArrowSchemaRef) -> <span
class="self">Self </span>{
+ IcebergTableProvider { table, schema }
+ }
<span class="doccomment">/// Asynchronously tries to construct a new
[`IcebergTableProvider`]
/// using the given client and table name to fetch an actual [`Table`]
/// in the provided namespace.
diff --git a/api/src/iceberg_datafusion/table/table_provider_factory.rs.html
b/api/src/iceberg_datafusion/table/table_provider_factory.rs.html
new file mode 100644
index 00000000..8885c20e
--- /dev/null
+++ b/api/src/iceberg_datafusion/table/table_provider_factory.rs.html
@@ -0,0 +1,601 @@
+<!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="Source of
the Rust file
`crates/integrations/datafusion/src/table/table_provider_factory.rs`."><title>table_provider_factory.rs
-
source</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,Fira
[...]
+<a href="#2" id="2">2</a>
+<a href="#3" id="3">3</a>
+<a href="#4" id="4">4</a>
+<a href="#5" id="5">5</a>
+<a href="#6" id="6">6</a>
+<a href="#7" id="7">7</a>
+<a href="#8" id="8">8</a>
+<a href="#9" id="9">9</a>
+<a href="#10" id="10">10</a>
+<a href="#11" id="11">11</a>
+<a href="#12" id="12">12</a>
+<a href="#13" id="13">13</a>
+<a href="#14" id="14">14</a>
+<a href="#15" id="15">15</a>
+<a href="#16" id="16">16</a>
+<a href="#17" id="17">17</a>
+<a href="#18" id="18">18</a>
+<a href="#19" id="19">19</a>
+<a href="#20" id="20">20</a>
+<a href="#21" id="21">21</a>
+<a href="#22" id="22">22</a>
+<a href="#23" id="23">23</a>
+<a href="#24" id="24">24</a>
+<a href="#25" id="25">25</a>
+<a href="#26" id="26">26</a>
+<a href="#27" id="27">27</a>
+<a href="#28" id="28">28</a>
+<a href="#29" id="29">29</a>
+<a href="#30" id="30">30</a>
+<a href="#31" id="31">31</a>
+<a href="#32" id="32">32</a>
+<a href="#33" id="33">33</a>
+<a href="#34" id="34">34</a>
+<a href="#35" id="35">35</a>
+<a href="#36" id="36">36</a>
+<a href="#37" id="37">37</a>
+<a href="#38" id="38">38</a>
+<a href="#39" id="39">39</a>
+<a href="#40" id="40">40</a>
+<a href="#41" id="41">41</a>
+<a href="#42" id="42">42</a>
+<a href="#43" id="43">43</a>
+<a href="#44" id="44">44</a>
+<a href="#45" id="45">45</a>
+<a href="#46" id="46">46</a>
+<a href="#47" id="47">47</a>
+<a href="#48" id="48">48</a>
+<a href="#49" id="49">49</a>
+<a href="#50" id="50">50</a>
+<a href="#51" id="51">51</a>
+<a href="#52" id="52">52</a>
+<a href="#53" id="53">53</a>
+<a href="#54" id="54">54</a>
+<a href="#55" id="55">55</a>
+<a href="#56" id="56">56</a>
+<a href="#57" id="57">57</a>
+<a href="#58" id="58">58</a>
+<a href="#59" id="59">59</a>
+<a href="#60" id="60">60</a>
+<a href="#61" id="61">61</a>
+<a href="#62" id="62">62</a>
+<a href="#63" id="63">63</a>
+<a href="#64" id="64">64</a>
+<a href="#65" id="65">65</a>
+<a href="#66" id="66">66</a>
+<a href="#67" id="67">67</a>
+<a href="#68" id="68">68</a>
+<a href="#69" id="69">69</a>
+<a href="#70" id="70">70</a>
+<a href="#71" id="71">71</a>
+<a href="#72" id="72">72</a>
+<a href="#73" id="73">73</a>
+<a href="#74" id="74">74</a>
+<a href="#75" id="75">75</a>
+<a href="#76" id="76">76</a>
+<a href="#77" id="77">77</a>
+<a href="#78" id="78">78</a>
+<a href="#79" id="79">79</a>
+<a href="#80" id="80">80</a>
+<a href="#81" id="81">81</a>
+<a href="#82" id="82">82</a>
+<a href="#83" id="83">83</a>
+<a href="#84" id="84">84</a>
+<a href="#85" id="85">85</a>
+<a href="#86" id="86">86</a>
+<a href="#87" id="87">87</a>
+<a href="#88" id="88">88</a>
+<a href="#89" id="89">89</a>
+<a href="#90" id="90">90</a>
+<a href="#91" id="91">91</a>
+<a href="#92" id="92">92</a>
+<a href="#93" id="93">93</a>
+<a href="#94" id="94">94</a>
+<a href="#95" id="95">95</a>
+<a href="#96" id="96">96</a>
+<a href="#97" id="97">97</a>
+<a href="#98" id="98">98</a>
+<a href="#99" id="99">99</a>
+<a href="#100" id="100">100</a>
+<a href="#101" id="101">101</a>
+<a href="#102" id="102">102</a>
+<a href="#103" id="103">103</a>
+<a href="#104" id="104">104</a>
+<a href="#105" id="105">105</a>
+<a href="#106" id="106">106</a>
+<a href="#107" id="107">107</a>
+<a href="#108" id="108">108</a>
+<a href="#109" id="109">109</a>
+<a href="#110" id="110">110</a>
+<a href="#111" id="111">111</a>
+<a href="#112" id="112">112</a>
+<a href="#113" id="113">113</a>
+<a href="#114" id="114">114</a>
+<a href="#115" id="115">115</a>
+<a href="#116" id="116">116</a>
+<a href="#117" id="117">117</a>
+<a href="#118" id="118">118</a>
+<a href="#119" id="119">119</a>
+<a href="#120" id="120">120</a>
+<a href="#121" id="121">121</a>
+<a href="#122" id="122">122</a>
+<a href="#123" id="123">123</a>
+<a href="#124" id="124">124</a>
+<a href="#125" id="125">125</a>
+<a href="#126" id="126">126</a>
+<a href="#127" id="127">127</a>
+<a href="#128" id="128">128</a>
+<a href="#129" id="129">129</a>
+<a href="#130" id="130">130</a>
+<a href="#131" id="131">131</a>
+<a href="#132" id="132">132</a>
+<a href="#133" id="133">133</a>
+<a href="#134" id="134">134</a>
+<a href="#135" id="135">135</a>
+<a href="#136" id="136">136</a>
+<a href="#137" id="137">137</a>
+<a href="#138" id="138">138</a>
+<a href="#139" id="139">139</a>
+<a href="#140" id="140">140</a>
+<a href="#141" id="141">141</a>
+<a href="#142" id="142">142</a>
+<a href="#143" id="143">143</a>
+<a href="#144" id="144">144</a>
+<a href="#145" id="145">145</a>
+<a href="#146" id="146">146</a>
+<a href="#147" id="147">147</a>
+<a href="#148" id="148">148</a>
+<a href="#149" id="149">149</a>
+<a href="#150" id="150">150</a>
+<a href="#151" id="151">151</a>
+<a href="#152" id="152">152</a>
+<a href="#153" id="153">153</a>
+<a href="#154" id="154">154</a>
+<a href="#155" id="155">155</a>
+<a href="#156" id="156">156</a>
+<a href="#157" id="157">157</a>
+<a href="#158" id="158">158</a>
+<a href="#159" id="159">159</a>
+<a href="#160" id="160">160</a>
+<a href="#161" id="161">161</a>
+<a href="#162" id="162">162</a>
+<a href="#163" id="163">163</a>
+<a href="#164" id="164">164</a>
+<a href="#165" id="165">165</a>
+<a href="#166" id="166">166</a>
+<a href="#167" id="167">167</a>
+<a href="#168" id="168">168</a>
+<a href="#169" id="169">169</a>
+<a href="#170" id="170">170</a>
+<a href="#171" id="171">171</a>
+<a href="#172" id="172">172</a>
+<a href="#173" id="173">173</a>
+<a href="#174" id="174">174</a>
+<a href="#175" id="175">175</a>
+<a href="#176" id="176">176</a>
+<a href="#177" id="177">177</a>
+<a href="#178" id="178">178</a>
+<a href="#179" id="179">179</a>
+<a href="#180" id="180">180</a>
+<a href="#181" id="181">181</a>
+<a href="#182" id="182">182</a>
+<a href="#183" id="183">183</a>
+<a href="#184" id="184">184</a>
+<a href="#185" id="185">185</a>
+<a href="#186" id="186">186</a>
+<a href="#187" id="187">187</a>
+<a href="#188" id="188">188</a>
+<a href="#189" id="189">189</a>
+<a href="#190" id="190">190</a>
+<a href="#191" id="191">191</a>
+<a href="#192" id="192">192</a>
+<a href="#193" id="193">193</a>
+<a href="#194" id="194">194</a>
+<a href="#195" id="195">195</a>
+<a href="#196" id="196">196</a>
+<a href="#197" id="197">197</a>
+<a href="#198" id="198">198</a>
+<a href="#199" id="199">199</a>
+<a href="#200" id="200">200</a>
+<a href="#201" id="201">201</a>
+<a href="#202" id="202">202</a>
+<a href="#203" id="203">203</a>
+<a href="#204" id="204">204</a>
+<a href="#205" id="205">205</a>
+<a href="#206" id="206">206</a>
+<a href="#207" id="207">207</a>
+<a href="#208" id="208">208</a>
+<a href="#209" id="209">209</a>
+<a href="#210" id="210">210</a>
+<a href="#211" id="211">211</a>
+<a href="#212" id="212">212</a>
+<a href="#213" id="213">213</a>
+<a href="#214" id="214">214</a>
+<a href="#215" id="215">215</a>
+<a href="#216" id="216">216</a>
+<a href="#217" id="217">217</a>
+<a href="#218" id="218">218</a>
+<a href="#219" id="219">219</a>
+<a href="#220" id="220">220</a>
+<a href="#221" id="221">221</a>
+<a href="#222" id="222">222</a>
+<a href="#223" id="223">223</a>
+<a href="#224" id="224">224</a>
+<a href="#225" id="225">225</a>
+<a href="#226" id="226">226</a>
+<a href="#227" id="227">227</a>
+<a href="#228" id="228">228</a>
+<a href="#229" id="229">229</a>
+<a href="#230" id="230">230</a>
+<a href="#231" id="231">231</a>
+<a href="#232" id="232">232</a>
+<a href="#233" id="233">233</a>
+<a href="#234" id="234">234</a>
+<a href="#235" id="235">235</a>
+<a href="#236" id="236">236</a>
+<a href="#237" id="237">237</a>
+<a href="#238" id="238">238</a>
+<a href="#239" id="239">239</a>
+<a href="#240" id="240">240</a>
+<a href="#241" id="241">241</a>
+<a href="#242" id="242">242</a>
+<a href="#243" id="243">243</a>
+<a href="#244" id="244">244</a>
+<a href="#245" id="245">245</a>
+<a href="#246" id="246">246</a>
+<a href="#247" id="247">247</a>
+<a href="#248" id="248">248</a>
+<a href="#249" id="249">249</a>
+<a href="#250" id="250">250</a>
+<a href="#251" id="251">251</a>
+<a href="#252" id="252">252</a>
+<a href="#253" id="253">253</a>
+<a href="#254" id="254">254</a>
+<a href="#255" id="255">255</a>
+<a href="#256" id="256">256</a>
+<a href="#257" id="257">257</a>
+<a href="#258" id="258">258</a>
+<a href="#259" id="259">259</a>
+<a href="#260" id="260">260</a>
+<a href="#261" id="261">261</a>
+<a href="#262" id="262">262</a>
+<a href="#263" id="263">263</a>
+<a href="#264" id="264">264</a>
+<a href="#265" id="265">265</a>
+<a href="#266" id="266">266</a>
+<a href="#267" id="267">267</a>
+<a href="#268" id="268">268</a>
+<a href="#269" id="269">269</a>
+<a href="#270" id="270">270</a>
+<a href="#271" id="271">271</a>
+<a href="#272" id="272">272</a>
+<a href="#273" id="273">273</a>
+<a href="#274" id="274">274</a>
+<a href="#275" id="275">275</a>
+<a href="#276" id="276">276</a>
+<a href="#277" id="277">277</a>
+<a href="#278" id="278">278</a>
+<a href="#279" id="279">279</a>
+<a href="#280" id="280">280</a>
+<a href="#281" id="281">281</a>
+<a href="#282" id="282">282</a>
+<a href="#283" id="283">283</a>
+<a href="#284" id="284">284</a>
+<a href="#285" id="285">285</a>
+<a href="#286" id="286">286</a>
+<a href="#287" id="287">287</a>
+<a href="#288" id="288">288</a>
+<a href="#289" id="289">289</a>
+<a href="#290" id="290">290</a>
+<a href="#291" id="291">291</a>
+<a href="#292" id="292">292</a>
+<a href="#293" id="293">293</a>
+<a href="#294" id="294">294</a>
+<a href="#295" id="295">295</a>
+<a href="#296" id="296">296</a>
+<a href="#297" id="297">297</a>
+<a href="#298" id="298">298</a>
+<a href="#299" id="299">299</a>
+<a href="#300" id="300">300</a>
+</pre></div><pre class="rust"><code><span class="comment">// Licensed to the
Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+</span><span class="kw">use </span>std::borrow::Cow;
+<span class="kw">use </span>std::collections::HashMap;
+<span class="kw">use </span>std::sync::Arc;
+
+<span class="kw">use </span>async_trait::async_trait;
+<span class="kw">use </span>datafusion::catalog::{Session, TableProvider,
TableProviderFactory};
+<span class="kw">use </span>datafusion::error::Result <span class="kw">as
</span>DFResult;
+<span class="kw">use </span>datafusion::logical_expr::CreateExternalTable;
+<span class="kw">use </span>datafusion::sql::TableReference;
+<span class="kw">use </span>iceberg::arrow::schema_to_arrow_schema;
+<span class="kw">use </span>iceberg::io::FileIO;
+<span class="kw">use </span>iceberg::table::StaticTable;
+<span class="kw">use </span>iceberg::{Error, ErrorKind, <span
class="prelude-ty">Result</span>, TableIdent};
+
+<span class="kw">use </span><span
class="kw">super</span>::IcebergTableProvider;
+<span class="kw">use </span><span class="kw">crate</span>::to_datafusion_error;
+
+<span class="doccomment">/// A factory that implements DataFusion's
`TableProviderFactory` to create `IcebergTableProvider` instances.
+///
+/// # Example
+///
+/// The following example demonstrates how to create an Iceberg external table
using SQL in
+/// a DataFusion session with `IcebergTableProviderFactory`:
+///
+/// ```
+/// use std::sync::Arc;
+///
+/// use datafusion::execution::session_state::SessionStateBuilder;
+/// use datafusion::prelude::*;
+/// use datafusion::sql::TableReference;
+/// use iceberg_datafusion::IcebergTableProviderFactory;
+///
+/// #[tokio::main]
+/// async fn main() {
+/// // Create a new session context
+/// let mut state =
SessionStateBuilder::new().with_default_features().build();
+///
+/// // Register the IcebergTableProviderFactory in the session
+/// state.table_factories_mut().insert(
+/// "ICEBERG".to_string(),
+/// Arc::new(IcebergTableProviderFactory::new()),
+/// );
+///
+/// let ctx = SessionContext::new_with_state(state);
+///
+/// // Define the table reference and the location of the Iceberg metadata
file
+/// let table_ref = TableReference::bare("my_iceberg_table");
+/// // /path/to/iceberg/metadata
+/// let metadata_file_path = format!(
+/// "{}/testdata/table_metadata/{}",
+/// env!("CARGO_MANIFEST_DIR"),
+/// "TableMetadataV2.json"
+/// );
+///
+/// // SQL command to create the Iceberg external table
+/// let sql = format!(
+/// "CREATE EXTERNAL TABLE {} STORED AS ICEBERG LOCATION '{}'",
+/// table_ref, metadata_file_path
+/// );
+///
+/// // Execute the SQL to create the external table
+/// ctx.sql(&sql).await.expect("Failed to create table");
+///
+/// // Verify the table was created by retrieving the table provider
+/// let table_provider = ctx
+/// .table_provider(table_ref)
+/// .await
+/// .expect("Table not found");
+///
+/// println!("Iceberg external table created successfully.");
+/// }
+/// ```
+///
+/// # Note
+/// This factory is designed to work with the DataFusion query engine,
+/// specifically for handling Iceberg tables in external table commands.
+/// Currently, this implementation supports only reading Iceberg tables, with
+/// the creation of new tables not yet available.
+///
+/// # Errors
+/// An error will be returned if any unsupported feature, such as partition
columns,
+/// order expressions, constraints, or column defaults, is detected in the
table creation command.
+</span><span class="attr">#[derive(Default)]
+</span><span class="kw">pub struct </span>IcebergTableProviderFactory {}
+
+<span class="kw">impl </span>IcebergTableProviderFactory {
+ <span class="kw">pub fn </span>new() -> <span class="self">Self </span>{
+ <span class="self">Self </span>{}
+ }
+}
+
+<span class="attr">#[async_trait]
+</span><span class="kw">impl </span>TableProviderFactory <span class="kw">for
</span>IcebergTableProviderFactory {
+ <span class="kw">async fn </span>create(
+ <span class="kw-2">&</span><span class="self">self</span>,
+ _state: <span class="kw-2">&</span><span class="kw">dyn
</span>Session,
+ cmd: <span class="kw-2">&</span>CreateExternalTable,
+ ) -> DFResult<Arc<<span class="kw">dyn
</span>TableProvider>> {
+ check_cmd(cmd).map_err(to_datafusion_error)<span
class="question-mark">?</span>;
+
+ <span class="kw">let </span>table_name = <span
class="kw-2">&</span>cmd.name;
+ <span class="kw">let </span>metadata_file_path = <span
class="kw-2">&</span>cmd.location;
+ <span class="kw">let </span>options = <span
class="kw-2">&</span>cmd.options;
+
+ <span class="kw">let </span>table_name_with_ns =
complement_namespace_if_necessary(table_name);
+
+ <span class="kw">let </span>table =
create_static_table(table_name_with_ns, metadata_file_path, options)
+ .<span class="kw">await
+ </span>.map_err(to_datafusion_error)<span class="question-mark">?
+ </span>.into_table();
+
+ <span class="kw">let </span>schema =
schema_to_arrow_schema(table.metadata().current_schema())
+ .map_err(to_datafusion_error)<span class="question-mark">?</span>;
+
+ <span
class="prelude-val">Ok</span>(Arc::new(IcebergTableProvider::new(table,
Arc::new(schema))))
+ }
+}
+
+<span class="kw">fn </span>check_cmd(cmd: <span
class="kw-2">&</span>CreateExternalTable) -> <span
class="prelude-ty">Result</span><()> {
+ <span class="kw">let </span>CreateExternalTable {
+ schema,
+ table_partition_cols,
+ order_exprs,
+ constraints,
+ column_defaults,
+ ..
+ } = cmd;
+
+ <span class="comment">// Check if any of the fields violate the
constraints in a single condition
+ </span><span class="kw">let </span>is_invalid = !schema.fields().is_empty()
+ || !table_partition_cols.is_empty()
+ || !order_exprs.is_empty()
+ || !constraints.is_empty()
+ || !column_defaults.is_empty();
+
+ <span class="kw">if </span>is_invalid {
+ <span class="kw">return </span><span
class="prelude-val">Err</span>(Error::new(ErrorKind::FeatureUnsupported, <span
class="string">"Currently we only support reading existing icebergs tables in
external table command. To create new table, please use catalog
provider."</span>));
+ }
+
+ <span class="prelude-val">Ok</span>(())
+}
+
+<span class="doccomment">/// Complements the namespace of a table name if
necessary.
+///
+/// # Note
+/// If the table name is a bare name, it will be complemented with the
'default' namespace.
+/// Otherwise, it will be returned as is. Because Iceberg tables are always
namespaced, but DataFusion
+/// external table commands maybe not include the namespace, this function
ensures that the namespace is always present.
+///
+/// # See also
+/// - [`iceberg::NamespaceIdent`]
+/// - [`datafusion::sql::planner::SqlToRel::external_table_to_plan`]
+</span><span class="kw">fn
</span>complement_namespace_if_necessary(table_name: <span
class="kw-2">&</span>TableReference) -> Cow<<span
class="lifetime">'_</span>, TableReference> {
+ <span class="kw">match </span>table_name {
+ TableReference::Bare { table } => {
+ Cow::Owned(TableReference::partial(<span
class="string">"default"</span>, table.as_ref()))
+ }
+ other => Cow::Borrowed(other),
+ }
+}
+
+<span class="kw">async fn </span>create_static_table(
+ table_name: Cow<<span class="lifetime">'_</span>, TableReference>,
+ metadata_file_path: <span class="kw-2">&</span>str,
+ props: <span class="kw-2">&</span>HashMap<String, String>,
+) -> <span class="prelude-ty">Result</span><StaticTable> {
+ <span class="kw">let </span>table_ident =
TableIdent::from_strs(table_name.to_vec())<span class="question-mark">?</span>;
+ <span class="kw">let </span>file_io =
FileIO::from_path(metadata_file_path)<span class="question-mark">?
+ </span>.with_props(props)
+ .build()<span class="question-mark">?</span>;
+ StaticTable::from_metadata_file(metadata_file_path, table_ident,
file_io).<span class="kw">await
+</span>}
+
+<span class="attr">#[cfg(test)]
+</span><span class="kw">mod </span>tests {
+
+ <span class="kw">use </span>datafusion::arrow::datatypes::{DataType,
Field, Schema};
+ <span class="kw">use </span>datafusion::catalog::TableProviderFactory;
+ <span class="kw">use </span>datafusion::common::{Constraints, DFSchema};
+ <span class="kw">use
</span>datafusion::execution::session_state::SessionStateBuilder;
+ <span class="kw">use </span>datafusion::logical_expr::CreateExternalTable;
+ <span class="kw">use
</span>datafusion::parquet::arrow::PARQUET_FIELD_ID_META_KEY;
+ <span class="kw">use </span>datafusion::prelude::SessionContext;
+ <span class="kw">use </span>datafusion::sql::TableReference;
+
+ <span class="kw">use super</span>::<span class="kw-2">*</span>;
+
+ <span class="kw">fn </span>table_metadata_v2_schema() -> Schema {
+ Schema::new(<span class="macro">vec!</span>[
+ Field::new(<span class="string">"x"</span>, DataType::Int64, <span
class="bool-val">false</span>).with_metadata(HashMap::from([(
+ PARQUET_FIELD_ID_META_KEY.to_string(),
+ <span class="string">"1"</span>.to_string(),
+ )])),
+ Field::new(<span class="string">"y"</span>, DataType::Int64, <span
class="bool-val">false</span>).with_metadata(HashMap::from([(
+ PARQUET_FIELD_ID_META_KEY.to_string(),
+ <span class="string">"2"</span>.to_string(),
+ )])),
+ Field::new(<span class="string">"z"</span>, DataType::Int64, <span
class="bool-val">false</span>).with_metadata(HashMap::from([(
+ PARQUET_FIELD_ID_META_KEY.to_string(),
+ <span class="string">"3"</span>.to_string(),
+ )])),
+ ])
+ }
+
+ <span class="kw">fn </span>table_metadata_location() -> String {
+ <span class="macro">format!</span>(
+ <span class="string">"{}/testdata/table_metadata/{}"</span>,
+ <span class="macro">env!</span>(<span
class="string">"CARGO_MANIFEST_DIR"</span>),
+ <span class="string">"TableMetadataV2.json"
+ </span>)
+ }
+
+ <span class="kw">fn </span>create_external_table_cmd() ->
CreateExternalTable {
+ <span class="kw">let </span>metadata_file_path =
table_metadata_location();
+
+ CreateExternalTable {
+ name: TableReference::partial(<span
class="string">"static_ns"</span>, <span class="string">"static_table"</span>),
+ location: metadata_file_path,
+ schema: Arc::new(DFSchema::empty()),
+ file_type: <span class="string">"iceberg"</span>.to_string(),
+ options: Default::default(),
+ table_partition_cols: Default::default(),
+ order_exprs: Default::default(),
+ constraints: Constraints::empty(),
+ column_defaults: Default::default(),
+ if_not_exists: Default::default(),
+ definition: Default::default(),
+ unbounded: Default::default(),
+ }
+ }
+
+ <span class="attr">#[tokio::test]
+ </span><span class="kw">async fn </span>test_schema_of_created_table() {
+ <span class="kw">let </span>factory =
IcebergTableProviderFactory::new();
+
+ <span class="kw">let </span>state = SessionStateBuilder::new().build();
+ <span class="kw">let </span>cmd = create_external_table_cmd();
+
+ <span class="kw">let </span>table_provider = factory
+ .create(<span class="kw-2">&</span>state, <span
class="kw-2">&</span>cmd)
+ .<span class="kw">await
+ </span>.expect(<span class="string">"create table failed"</span>);
+
+ <span class="kw">let </span>expected_schema =
table_metadata_v2_schema();
+ <span class="kw">let </span>actual_schema = table_provider.schema();
+
+ <span class="macro">assert_eq!</span>(actual_schema.as_ref(), <span
class="kw-2">&</span>expected_schema);
+ }
+
+ <span class="attr">#[tokio::test]
+ </span><span class="kw">async fn
</span>test_schema_of_created_external_table_sql() {
+ <span class="kw">let </span><span class="kw-2">mut </span>state =
SessionStateBuilder::new().with_default_features().build();
+ state.table_factories_mut().insert(
+ <span class="string">"ICEBERG"</span>.to_string(),
+ Arc::new(IcebergTableProviderFactory::new()),
+ );
+ <span class="kw">let </span>ctx =
SessionContext::new_with_state(state);
+
+ <span class="comment">// All external tables in DataFusion use bare
names.
+ // See
https://github.com/apache/datafusion/blob/main/datafusion/sql/src/statement.rs#L1038-#L1039
+ </span><span class="kw">let </span>table_ref =
TableReference::bare(<span class="string">"static_table"</span>);
+
+ <span class="comment">// Create the external table
+ </span><span class="kw">let </span>sql = <span
class="macro">format!</span>(
+ <span class="string">"CREATE EXTERNAL TABLE {} STORED AS ICEBERG
LOCATION '{}'"</span>,
+ table_ref,
+ table_metadata_location()
+ );
+ <span class="kw">let </span>_df = ctx.sql(<span
class="kw-2">&</span>sql).<span class="kw">await</span>.expect(<span
class="string">"create table failed"</span>);
+
+ <span class="comment">// Get the created external table
+ </span><span class="kw">let </span>table_provider = ctx
+ .table_provider(table_ref)
+ .<span class="kw">await
+ </span>.expect(<span class="string">"table not found"</span>);
+
+ <span class="comment">// Check the schema of the created table
+ </span><span class="kw">let </span>expected_schema =
table_metadata_v2_schema();
+ <span class="kw">let </span>actual_schema = table_provider.schema();
+
+ <span class="macro">assert_eq!</span>(actual_schema.as_ref(), <span
class="kw-2">&</span>expected_schema);
+ }
+}
+</code></pre></div></section></main></body></html>
\ No newline at end of file
diff --git a/api/trait.impl/core/default/trait.Default.js
b/api/trait.impl/core/default/trait.Default.js
index 1779d563..77c50f52 100644
--- a/api/trait.impl/core/default/trait.Default.js
+++ b/api/trait.impl/core/default/trait.Default.js
@@ -1,4 +1,5 @@
(function() {var implementors = {
"iceberg":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/default/trait.Default.html\"
title=\"trait core::default::Default\">Default</a> for <a class=\"enum\"
href=\"iceberg/spec/enum.Operation.html\" title=\"enum
iceberg::spec::Operation\">Operation</a>"],["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/default/trait.Default.html\"
title=\"trait core::default::Default\">Default</a> for <a class=\"struct\"
href=\"iceberg/spec/struct.DataFi [...]
-"iceberg_catalog_hms":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/default/trait.Default.html\"
title=\"trait core::default::Default\">Default</a> for <a class=\"enum\"
href=\"iceberg_catalog_hms/enum.HmsThriftTransport.html\" title=\"enum
iceberg_catalog_hms::HmsThriftTransport\">HmsThriftTransport</a>"]]
+"iceberg_catalog_hms":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/default/trait.Default.html\"
title=\"trait core::default::Default\">Default</a> for <a class=\"enum\"
href=\"iceberg_catalog_hms/enum.HmsThriftTransport.html\" title=\"enum
iceberg_catalog_hms::HmsThriftTransport\">HmsThriftTransport</a>"]],
+"iceberg_datafusion":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/default/trait.Default.html\"
title=\"trait core::default::Default\">Default</a> for <a class=\"struct\"
href=\"iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html\"
title=\"struct
iceberg_datafusion::table_provider_factory::IcebergTableProviderFactory\">IcebergTableProviderFactory</a>"]]
};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ No newline at end of file
diff --git a/api/trait.impl/core/marker/trait.Freeze.js
b/api/trait.impl/core/marker/trait.Freeze.js
index 94328941..3f037e1e 100644
--- a/api/trait.impl/core/marker/trait.Freeze.js
+++ b/api/trait.impl/core/marker/trait.Freeze.js
@@ -5,6 +5,6 @@
"iceberg_catalog_memory":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\"
href=\"iceberg_catalog_memory/struct.MemoryCatalog.html\" title=\"struct
iceberg_catalog_memory::MemoryCatalog\">MemoryCatalog</a>",1,["iceberg_catalog_memory::catalog::MemoryCatalog"]]],
"iceberg_catalog_rest":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\"
href=\"iceberg_catalog_rest/struct.RestCatalog.html\" title=\"struct
iceberg_catalog_rest::RestCatalog\">RestCatalog</a>",1,["iceberg_catalog_rest::catalog::RestCatalog"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marke [...]
"iceberg_catalog_sql":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"enum\"
href=\"iceberg_catalog_sql/enum.SqlBindStyle.html\" title=\"enum
iceberg_catalog_sql::SqlBindStyle\">SqlBindStyle</a>",1,["iceberg_catalog_sql::catalog::SqlBindStyle"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marker::Free [...]
-"iceberg_datafusion":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Free [...]
+"iceberg_datafusion":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Free [...]
"iceberg_test_utils":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html\"
title=\"trait core::marker::Freeze\">Freeze</a> for <a class=\"struct\"
href=\"iceberg_test_utils/docker/struct.DockerCompose.html\" title=\"struct
iceberg_test_utils::docker::DockerCompose\">DockerCompose</a>",1,["iceberg_test_utils::docker::DockerCompose"]]]
};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ No newline at end of file
diff --git a/api/trait.impl/core/marker/trait.Send.js
b/api/trait.impl/core/marker/trait.Send.js
index d58b8bf8..c04c2612 100644
--- a/api/trait.impl/core/marker/trait.Send.js
+++ b/api/trait.impl/core/marker/trait.Send.js
@@ -5,6 +5,6 @@
"iceberg_catalog_memory":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\"
href=\"iceberg_catalog_memory/struct.MemoryCatalog.html\" title=\"struct
iceberg_catalog_memory::MemoryCatalog\">MemoryCatalog</a>",1,["iceberg_catalog_memory::catalog::MemoryCatalog"]]],
"iceberg_catalog_rest":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\"
href=\"iceberg_catalog_rest/struct.RestCatalog.html\" title=\"struct
iceberg_catalog_rest::RestCatalog\">RestCatalog</a>",1,["iceberg_catalog_rest::catalog::RestCatalog"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\" [...]
"iceberg_catalog_sql":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\">Send</a> for <a class=\"enum\"
href=\"iceberg_catalog_sql/enum.SqlBindStyle.html\" title=\"enum
iceberg_catalog_sql::SqlBindStyle\">SqlBindStyle</a>",1,["iceberg_catalog_sql::catalog::SqlBindStyle"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\">Send< [...]
-"iceberg_datafusion":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\ [...]
+"iceberg_datafusion":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\ [...]
"iceberg_test_utils":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Send.html\"
title=\"trait core::marker::Send\">Send</a> for <a class=\"struct\"
href=\"iceberg_test_utils/docker/struct.DockerCompose.html\" title=\"struct
iceberg_test_utils::docker::DockerCompose\">DockerCompose</a>",1,["iceberg_test_utils::docker::DockerCompose"]]]
};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ 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 7f8c6e76..6b5f97b7 100644
--- a/api/trait.impl/core/marker/trait.Sync.js
+++ b/api/trait.impl/core/marker/trait.Sync.js
@@ -5,6 +5,6 @@
"iceberg_catalog_memory":[["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_catalog_memory/struct.MemoryCatalog.html\" title=\"struct
iceberg_catalog_memory::MemoryCatalog\">MemoryCatalog</a>",1,["iceberg_catalog_memory::catalog::MemoryCatalog"]]],
"iceberg_catalog_rest":[["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_catalog_rest/struct.RestCatalog.html\" title=\"struct
iceberg_catalog_rest::RestCatalog\">RestCatalog</a>",1,["iceberg_catalog_rest::catalog::RestCatalog"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\"
title=\"trait core::marker::Sync\" [...]
"iceberg_catalog_sql":[["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=\"enum\"
href=\"iceberg_catalog_sql/enum.SqlBindStyle.html\" title=\"enum
iceberg_catalog_sql::SqlBindStyle\">SqlBindStyle</a>",1,["iceberg_catalog_sql::catalog::SqlBindStyle"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\"
title=\"trait core::marker::Sync\">Sync< [...]
-"iceberg_datafusion":[["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_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\ [...]
+"iceberg_datafusion":[["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_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html\ [...]
"iceberg_test_utils":[["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_test_utils/docker/struct.DockerCompose.html\" title=\"struct
iceberg_test_utils::docker::DockerCompose\">DockerCompose</a>",1,["iceberg_test_utils::docker::DockerCompose"]]]
};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ No newline at end of file
diff --git a/api/trait.impl/core/marker/trait.Unpin.js
b/api/trait.impl/core/marker/trait.Unpin.js
index 2b6e16da..7552658d 100644
--- a/api/trait.impl/core/marker/trait.Unpin.js
+++ b/api/trait.impl/core/marker/trait.Unpin.js
@@ -5,6 +5,6 @@
"iceberg_catalog_memory":[["impl <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=\"struct\"
href=\"iceberg_catalog_memory/struct.MemoryCatalog.html\" title=\"struct
iceberg_catalog_memory::MemoryCatalog\">MemoryCatalog</a>",1,["iceberg_catalog_memory::catalog::MemoryCatalog"]]],
"iceberg_catalog_rest":[["impl <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=\"struct\"
href=\"iceberg_catalog_rest/struct.RestCatalog.html\" title=\"struct
iceberg_catalog_rest::RestCatalog\">RestCatalog</a>",1,["iceberg_catalog_rest::catalog::RestCatalog"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html\"
title=\"trait core::marker::Un [...]
"iceberg_catalog_sql":[["impl <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=\"enum\"
href=\"iceberg_catalog_sql/enum.SqlBindStyle.html\" title=\"enum
iceberg_catalog_sql::SqlBindStyle\">SqlBindStyle</a>",1,["iceberg_catalog_sql::catalog::SqlBindStyle"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html\"
title=\"trait core::marker::Unpin\"> [...]
-"iceberg_datafusion":[["impl <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=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.h [...]
+"iceberg_datafusion":[["impl <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=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.h [...]
"iceberg_test_utils":[["impl <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=\"struct\"
href=\"iceberg_test_utils/docker/struct.DockerCompose.html\" title=\"struct
iceberg_test_utils::docker::DockerCompose\">DockerCompose</a>",1,["iceberg_test_utils::docker::DockerCompose"]]]
};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ No newline at end of file
diff --git a/api/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
b/api/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
index 83296c86..f516d1db 100644
--- a/api/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
+++ b/api/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js
@@ -5,6 +5,6 @@
"iceberg_catalog_memory":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html\"
title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for
<a class=\"struct\" href=\"iceberg_catalog_memory/struct.MemoryCatalog.html\"
title=\"struct
iceberg_catalog_memory::MemoryCatalog\">MemoryCatalog</a>",1,["iceberg_catalog_memory::catalog::MemoryCatalog"]]],
"iceberg_catalog_rest":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html\"
title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for
<a class=\"struct\" href=\"iceberg_catalog_rest/struct.RestCatalog.html\"
title=\"struct
iceberg_catalog_rest::RestCatalog\">RestCatalog</a>",1,["iceberg_catalog_rest::catalog::RestCatalog"]],["impl
<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/panic/un [...]
"iceberg_catalog_sql":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html\"
title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for
<a class=\"struct\" href=\"iceberg_catalog_sql/struct.SqlCatalog.html\"
title=\"struct
iceberg_catalog_sql::SqlCatalog\">SqlCatalog</a>",1,["iceberg_catalog_sql::catalog::SqlCatalog"]],["impl
!<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_sa [...]
-"iceberg_datafusion":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html\"
title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for
<a class=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
!<a class=\"trait\" href=\"https://do [...]
+"iceberg_datafusion":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html\"
title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for
<a class=\"struct\"
href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\" title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
!<a class=\"trait\" href=\"https://do [...]
"iceberg_test_utils":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html\"
title=\"trait core::panic::unwind_safe::RefUnwindSafe\">RefUnwindSafe</a> for
<a class=\"struct\"
href=\"iceberg_test_utils/docker/struct.DockerCompose.html\" title=\"struct
iceberg_test_utils::docker::DockerCompose\">DockerCompose</a>",1,["iceberg_test_utils::docker::DockerCompose"]]]
};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ No newline at end of file
diff --git a/api/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
b/api/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
index a7244627..2304f7ca 100644
--- a/api/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
+++ b/api/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js
@@ -5,6 +5,6 @@
"iceberg_catalog_memory":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html\"
title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a
class=\"struct\" href=\"iceberg_catalog_memory/struct.MemoryCatalog.html\"
title=\"struct
iceberg_catalog_memory::MemoryCatalog\">MemoryCatalog</a>",1,["iceberg_catalog_memory::catalog::MemoryCatalog"]]],
"iceberg_catalog_rest":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html\"
title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a
class=\"struct\" href=\"iceberg_catalog_rest/struct.RestCatalog.html\"
title=\"struct
iceberg_catalog_rest::RestCatalog\">RestCatalog</a>",1,["iceberg_catalog_rest::catalog::RestCatalog"]],["impl
<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe [...]
"iceberg_catalog_sql":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html\"
title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a
class=\"struct\" href=\"iceberg_catalog_sql/struct.SqlCatalog.html\"
title=\"struct
iceberg_catalog_sql::SqlCatalog\">SqlCatalog</a>",1,["iceberg_catalog_sql::catalog::SqlCatalog"]],["impl
!<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait. [...]
-"iceberg_datafusion":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html\"
title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a
class=\"struct\" href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\"
title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
!<a class=\"trait\" href=\"https://doc.rust-la [...]
+"iceberg_datafusion":[["impl !<a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html\"
title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a
class=\"struct\" href=\"iceberg_datafusion/struct.IcebergCatalogProvider.html\"
title=\"struct
iceberg_datafusion::IcebergCatalogProvider\">IcebergCatalogProvider</a>",1,["iceberg_datafusion::catalog::IcebergCatalogProvider"]],["impl
!<a class=\"trait\" href=\"https://doc.rust-la [...]
"iceberg_test_utils":[["impl <a class=\"trait\"
href=\"https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html\"
title=\"trait core::panic::unwind_safe::UnwindSafe\">UnwindSafe</a> for <a
class=\"struct\" href=\"iceberg_test_utils/docker/struct.DockerCompose.html\"
title=\"struct
iceberg_test_utils::docker::DockerCompose\">DockerCompose</a>",1,["iceberg_test_utils::docker::DockerCompose"]]]
};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ No newline at end of file
diff --git
a/api/trait.impl/datafusion_catalog/table/trait.TableProviderFactory.js
b/api/trait.impl/datafusion_catalog/table/trait.TableProviderFactory.js
new file mode 100644
index 00000000..b36aeffe
--- /dev/null
+++ b/api/trait.impl/datafusion_catalog/table/trait.TableProviderFactory.js
@@ -0,0 +1,3 @@
+(function() {var implementors = {
+"iceberg_datafusion":[["impl TableProviderFactory for <a class=\"struct\"
href=\"iceberg_datafusion/table_provider_factory/struct.IcebergTableProviderFactory.html\"
title=\"struct
iceberg_datafusion::table_provider_factory::IcebergTableProviderFactory\">IcebergTableProviderFactory</a>"]]
+};if (window.register_implementors)
{window.register_implementors(implementors);} else {window.pending_implementors
= implementors;}})()
\ No newline at end of file