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 94019d8ee3 Publish built docs triggered by
a55d805e550492707ef64c1258c9f08ad1d09008
94019d8ee3 is described below
commit 94019d8ee3798d68bf9ccbe8c9c5e923a7e162bd
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Apr 13 12:12:57 2023 +0000
Publish built docs triggered by a55d805e550492707ef64c1258c9f08ad1d09008
---
_sources/user-guide/example-usage.md.txt | 5 +++--
user-guide/example-usage.html | 15 ++++++++-------
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/_sources/user-guide/example-usage.md.txt
b/_sources/user-guide/example-usage.md.txt
index fd3c4cf183..d8e7e3c882 100644
--- a/_sources/user-guide/example-usage.md.txt
+++ b/_sources/user-guide/example-usage.md.txt
@@ -175,12 +175,13 @@ codegen-units = 1
Then, in `main.rs.` update the memory allocator with the below after your
imports:
-```rust
+```rust,ignore
use datafusion::prelude::*;
#[global_allocator]
static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
+#[tokio::main]
async fn main() -> datafusion::error::Result<()> {
Ok(())
}
@@ -195,6 +196,6 @@ rustup toolchain install nightly
Based on the instruction set architecture you are building on you will want to
configure the `target-cpu` as well, ideally
with `native` or at least `avx2`.
-```
+```shell
RUSTFLAGS='-C target-cpu=native' cargo +nightly run --release
```
diff --git a/user-guide/example-usage.html b/user-guide/example-usage.html
index 5ff38d04ee..0201bbf43e 100644
--- a/user-guide/example-usage.html
+++ b/user-guide/example-usage.html
@@ -537,14 +537,15 @@ worth noting that using the settings in the <code
class="docutils literal notran
</pre></div>
</div>
<p>Then, in <code class="docutils literal notranslate"><span
class="pre">main.rs.</span></code> update the memory allocator with the below
after your imports:</p>
-<div class="highlight-rust notranslate"><div
class="highlight"><pre><span></span><span class="k">use</span><span class="w">
</span><span class="n">datafusion</span>::<span class="n">prelude</span>::<span
class="o">*</span><span class="p">;</span>
+<div class="highlight-rust,ignore notranslate"><div
class="highlight"><pre><span></span>use datafusion::prelude::*;
-<span class="cp">#[global_allocator]</span>
-<span class="k">static</span><span class="w"> </span><span
class="n">ALLOC</span>: <span class="nc">snmalloc_rs</span>::<span
class="n">SnMalloc</span><span class="w"> </span><span class="o">=</span><span
class="w"> </span><span class="n">snmalloc_rs</span>::<span
class="n">SnMalloc</span><span class="p">;</span>
+#[global_allocator]
+static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
-<span class="k">async</span><span class="w"> </span><span class="k">fn</span>
<span class="nf">main</span><span class="p">()</span><span class="w">
</span>-> <span class="nc">datafusion</span>::<span
class="n">error</span>::<span class="nb">Result</span><span
class="o"><</span><span class="p">()</span><span class="o">></span><span
class="w"> </span><span class="p">{</span>
-<span class="w"> </span><span class="nb">Ok</span><span class="p">(())</span>
-<span class="p">}</span>
+#[tokio::main]
+async fn main() -> datafusion::error::Result<()> {
+ Ok(())
+}
</pre></div>
</div>
<p>Finally, in order to build with the <code class="docutils literal
notranslate"><span class="pre">simd</span></code> optimization <code
class="docutils literal notranslate"><span class="pre">cargo</span> <span
class="pre">nightly</span></code> is required.</p>
@@ -553,7 +554,7 @@ worth noting that using the settings in the <code
class="docutils literal notran
</div>
<p>Based on the instruction set architecture you are building on you will want
to configure the <code class="docutils literal notranslate"><span
class="pre">target-cpu</span></code> as well, ideally
with <code class="docutils literal notranslate"><span
class="pre">native</span></code> or at least <code class="docutils literal
notranslate"><span class="pre">avx2</span></code>.</p>
-<div class="highlight-default notranslate"><div
class="highlight"><pre><span></span><span class="n">RUSTFLAGS</span><span
class="o">=</span><span class="s1">'-C target-cpu=native'</span> <span
class="n">cargo</span> <span class="o">+</span><span class="n">nightly</span>
<span class="n">run</span> <span class="o">--</span><span
class="n">release</span>
+<div class="highlight-shell notranslate"><div
class="highlight"><pre><span></span><span class="nv">RUSTFLAGS</span><span
class="o">=</span><span class="s1">'-C target-cpu=native'</span><span
class="w"> </span>cargo<span class="w"> </span>+nightly<span class="w">
</span>run<span class="w"> </span>--release
</pre></div>
</div>
</section>