This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 37a1e0cbf5 Publish built docs triggered by
d0a1d3030a70eaba00eb856ce864c6a1cee02365
37a1e0cbf5 is described below
commit 37a1e0cbf517089870e4c22731095ec78d41bcd9
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Aug 8 01:46:16 2024 +0000
Publish built docs triggered by d0a1d3030a70eaba00eb856ce864c6a1cee02365
---
_sources/library-user-guide/custom-table-providers.md.txt | 2 +-
library-user-guide/custom-table-providers.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/_sources/library-user-guide/custom-table-providers.md.txt
b/_sources/library-user-guide/custom-table-providers.md.txt
index a250e88091..f86cea0bda 100644
--- a/_sources/library-user-guide/custom-table-providers.md.txt
+++ b/_sources/library-user-guide/custom-table-providers.md.txt
@@ -146,7 +146,7 @@ For filters that can be pushed down, they'll be passed to
the `scan` method as t
In order to use the custom table provider, we need to register it with
DataFusion. This is done by creating a `TableProvider` and registering it with
the `SessionContext`.
```rust
-let mut ctx = SessionContext::new();
+let ctx = SessionContext::new();
let custom_table_provider = CustomDataSource::new();
ctx.register_table("custom_table", Arc::new(custom_table_provider));
diff --git a/library-user-guide/custom-table-providers.html
b/library-user-guide/custom-table-providers.html
index 32f7fb9173..02bf779878 100644
--- a/library-user-guide/custom-table-providers.html
+++ b/library-user-guide/custom-table-providers.html
@@ -704,7 +704,7 @@
<section id="using-the-custom-table-provider">
<h2>Using the Custom Table Provider<a class="headerlink"
href="#using-the-custom-table-provider" title="Link to this heading">ΒΆ</a></h2>
<p>In order to use the custom table provider, we need to register it with
DataFusion. This is done by creating a <code class="docutils literal
notranslate"><span class="pre">TableProvider</span></code> and registering it
with the <code class="docutils literal notranslate"><span
class="pre">SessionContext</span></code>.</p>
-<div class="highlight-rust notranslate"><div
class="highlight"><pre><span></span><span class="kd">let</span><span class="w">
</span><span class="k">mut</span><span class="w"> </span><span
class="n">ctx</span><span class="w"> </span><span class="o">=</span><span
class="w"> </span><span class="n">SessionContext</span><span
class="p">::</span><span class="n">new</span><span class="p">();</span>
+<div class="highlight-rust notranslate"><div
class="highlight"><pre><span></span><span class="kd">let</span><span class="w">
</span><span class="n">ctx</span><span class="w"> </span><span
class="o">=</span><span class="w"> </span><span
class="n">SessionContext</span><span class="p">::</span><span
class="n">new</span><span class="p">();</span>
<span class="kd">let</span><span class="w"> </span><span
class="n">custom_table_provider</span><span class="w"> </span><span
class="o">=</span><span class="w"> </span><span
class="n">CustomDataSource</span><span class="p">::</span><span
class="n">new</span><span class="p">();</span>
<span class="n">ctx</span><span class="p">.</span><span
class="n">register_table</span><span class="p">(</span><span
class="s">"custom_table"</span><span class="p">,</span><span
class="w"> </span><span class="n">Arc</span><span class="p">::</span><span
class="n">new</span><span class="p">(</span><span
class="n">custom_table_provider</span><span class="p">));</span>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]