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/arrow-datafusion.git
The following commit(s) were added to refs/heads/asf-site by this push:
new db9ba8b8d8 Publish built docs triggered by
e34dd7651fc3e2cc80f87e8bfaf0d98ec1312195
db9ba8b8d8 is described below
commit db9ba8b8d848c2b2b44101e95e9fb0609a753137
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Oct 23 13:17:36 2023 +0000
Publish built docs triggered by e34dd7651fc3e2cc80f87e8bfaf0d98ec1312195
---
_sources/library-user-guide/custom-table-providers.md.txt | 6 +++---
library-user-guide/custom-table-providers.html | 6 +++---
searchindex.js | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/_sources/library-user-guide/custom-table-providers.md.txt
b/_sources/library-user-guide/custom-table-providers.md.txt
index 2de4b1ba05..ca0e9de779 100644
--- a/_sources/library-user-guide/custom-table-providers.md.txt
+++ b/_sources/library-user-guide/custom-table-providers.md.txt
@@ -139,10 +139,10 @@ For filters that can be pushed down, they'll be passed to
the `scan` method as t
## Using the Custom Table Provider
-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 `ExecutionContext`.
+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 = ExecutionContext::new();
+let mut ctx = SessionContext::new();
let custom_table_provider = CustomDataSource::new();
ctx.register_table("custom_table", Arc::new(custom_table_provider));
@@ -160,7 +160,7 @@ To recap, in order to implement a custom table provider,
you need to:
1. Implement the `TableProvider` trait
2. Implement the `ExecutionPlan` trait
-3. Register the `TableProvider` with the `ExecutionContext`
+3. Register the `TableProvider` with the `SessionContext`
## Next Steps
diff --git a/library-user-guide/custom-table-providers.html
b/library-user-guide/custom-table-providers.html
index ac0437cc3e..2025687d95 100644
--- a/library-user-guide/custom-table-providers.html
+++ b/library-user-guide/custom-table-providers.html
@@ -567,8 +567,8 @@
</section>
<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">ExecutionContext</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">ExecutionContext</span>::<span
class="n">new</span><span class="p">();</span>
+<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="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="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="n">new</span><span
class="p">(</span><span class="n">custom_table_provider</span><span
class="p">));</span>
@@ -585,7 +585,7 @@
<ol class="arabic simple">
<li><p>Implement the <code class="docutils literal notranslate"><span
class="pre">TableProvider</span></code> trait</p></li>
<li><p>Implement the <code class="docutils literal notranslate"><span
class="pre">ExecutionPlan</span></code> trait</p></li>
-<li><p>Register the <code class="docutils literal notranslate"><span
class="pre">TableProvider</span></code> with the <code class="docutils literal
notranslate"><span class="pre">ExecutionContext</span></code></p></li>
+<li><p>Register the <code class="docutils literal notranslate"><span
class="pre">TableProvider</span></code> with the <code class="docutils literal
notranslate"><span class="pre">SessionContext</span></code></p></li>
</ol>
</section>
<section id="next-steps">
diff --git a/searchindex.js b/searchindex.js
index 72704921b7..64a7d883d3 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["contributor-guide/architecture",
"contributor-guide/communication", "contributor-guide/index",
"contributor-guide/quarterly_roadmap", "contributor-guide/roadmap",
"contributor-guide/specification/index",
"contributor-guide/specification/invariants",
"contributor-guide/specification/output-field-name-semantic", "index",
"library-user-guide/adding-udfs", "library-user-guide/building-logical-plans",
"library-user-guide/catalogs", "library-user-guide/custom-tab [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["contributor-guide/architecture",
"contributor-guide/communication", "contributor-guide/index",
"contributor-guide/quarterly_roadmap", "contributor-guide/roadmap",
"contributor-guide/specification/index",
"contributor-guide/specification/invariants",
"contributor-guide/specification/output-field-name-semantic", "index",
"library-user-guide/adding-udfs", "library-user-guide/building-logical-plans",
"library-user-guide/catalogs", "library-user-guide/custom-tab [...]
\ No newline at end of file