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 55d98cdf16 Publish built docs triggered by
382ba2b1605d244a10db21f4527e11570caa4323
55d98cdf16 is described below
commit 55d98cdf169b9d26ad3ef3b3716bd3e7f1911353
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Nov 11 17:54:53 2024 +0000
Publish built docs triggered by 382ba2b1605d244a10db21f4527e11570caa4323
---
_sources/user-guide/expressions.md.txt | 2 +-
_sources/user-guide/sql/scalar_functions.md.txt | 10 +++++-----
searchindex.js | 2 +-
user-guide/expressions.html | 2 +-
user-guide/sql/scalar_functions.html | 10 +++++-----
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/_sources/user-guide/expressions.md.txt
b/_sources/user-guide/expressions.md.txt
index ababb001f5..03ab86eeb8 100644
--- a/_sources/user-guide/expressions.md.txt
+++ b/_sources/user-guide/expressions.md.txt
@@ -228,7 +228,7 @@ select log(-1), log(0), sqrt(-1);
| array_pop_back(array) | Returns the array without
the last element. `array_pop_back([1, 2, 3]) -> [1, 2]`
|
| array_position(array, element) | Searches for an element in
the array, returns first occurrence. `array_position([1, 2, 2, 3, 4], 2) -> 2`
|
| array_positions(array, element) | Searches for an element in
the array, returns all occurrences. `array_positions([1, 2, 2, 3, 4], 2) -> [2,
3]`
|
-| array_prepend(array, element) | Prepends an element to the
beginning of an array. `array_prepend(1, [2, 3, 4]) -> [1, 2, 3, 4]`
|
+| array_prepend(element, array) | Prepends an element to the
beginning of an array. `array_prepend(1, [2, 3, 4]) -> [1, 2, 3, 4]`
|
| array_repeat(element, count) | Returns an array containing
element `count` times. `array_repeat(1, 3) -> [1, 1, 1]`
|
| array_remove(array, element) | Removes the first element
from the array equal to the given value. `array_remove([1, 2, 2, 3, 2, 1, 4],
2) -> [1, 2, 3, 2, 1, 4]`
|
| array_remove_n(array, element, max) | Removes the first `max`
elements from the array equal to the given value. `array_remove_n([1, 2, 2, 3,
2, 1, 4], 2, 2) -> [1, 3, 2, 1, 4]`
|
diff --git a/_sources/user-guide/sql/scalar_functions.md.txt
b/_sources/user-guide/sql/scalar_functions.md.txt
index 232efb02d4..490462909b 100644
--- a/_sources/user-guide/sql/scalar_functions.md.txt
+++ b/_sources/user-guide/sql/scalar_functions.md.txt
@@ -3081,23 +3081,23 @@ array_position(array, element, index)
### `array_prepend`
-Appends an element to the end of an array.
+Prepends an element to the beginning of an array.
```
-array_append(array, element)
+array_prepend(element, array)
```
#### Arguments
-- **array**: Array expression. Can be a constant, column, or function, and any
combination of array operators.
- **element**: Element to append to the array.
+- **array**: Array expression. Can be a constant, column, or function, and any
combination of array operators.
#### Example
```sql
-> select array_append([1, 2, 3], 4);
+> select array_prepend(1, [2, 3, 4]);
+--------------------------------------+
-| array_append(List([1,2,3]),Int64(4)) |
+| array_prepend(Int64(1), List([2,3,4])) |
+--------------------------------------+
| [1, 2, 3, 4] |
+--------------------------------------+
diff --git a/searchindex.js b/searchindex.js
index a74c49b1f2..8de9333bb8 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles": {"!=": [[47, "op-neq"]], "!~": [[47,
"op-re-not-match"]], "!~*": [[47, "op-re-not-match-i"]], "!~~": [[47, "id18"]],
"!~~*": [[47, "id19"]], "#": [[47, "op-bit-xor"]], "%": [[47, "op-modulo"]],
"&": [[47, "op-bit-and"]], "(relation, name) tuples in logical fields and
logical columns are unique": [[9,
"relation-name-tuples-in-logical-fields-and-logical-columns-are-unique"]], "*":
[[47, "op-multiply"]], "+": [[47, "op-plus"]], "-": [[47, "op-minus"]], "/":
[[4 [...]
\ No newline at end of file
+Search.setIndex({"alltitles": {"!=": [[47, "op-neq"]], "!~": [[47,
"op-re-not-match"]], "!~*": [[47, "op-re-not-match-i"]], "!~~": [[47, "id18"]],
"!~~*": [[47, "id19"]], "#": [[47, "op-bit-xor"]], "%": [[47, "op-modulo"]],
"&": [[47, "op-bit-and"]], "(relation, name) tuples in logical fields and
logical columns are unique": [[9,
"relation-name-tuples-in-logical-fields-and-logical-columns-are-unique"]], "*":
[[47, "op-multiply"]], "+": [[47, "op-plus"]], "-": [[47, "op-minus"]], "/":
[[4 [...]
\ No newline at end of file
diff --git a/user-guide/expressions.html b/user-guide/expressions.html
index bdccd38659..d51096e159 100644
--- a/user-guide/expressions.html
+++ b/user-guide/expressions.html
@@ -1127,7 +1127,7 @@ but these operators always return a <code class="docutils
literal notranslate"><
<tr class="row-even"><td><p>array_positions(array, element)</p></td>
<td><p>Searches for an element in the array, returns all occurrences. <code
class="docutils literal notranslate"><span
class="pre">array_positions([1,</span> <span class="pre">2,</span> <span
class="pre">2,</span> <span class="pre">3,</span> <span class="pre">4],</span>
<span class="pre">2)</span> <span class="pre">-></span> <span
class="pre">[2,</span> <span class="pre">3]</span></code></p></td>
</tr>
-<tr class="row-odd"><td><p>array_prepend(array, element)</p></td>
+<tr class="row-odd"><td><p>array_prepend(element, array)</p></td>
<td><p>Prepends an element to the beginning of an array. <code class="docutils
literal notranslate"><span class="pre">array_prepend(1,</span> <span
class="pre">[2,</span> <span class="pre">3,</span> <span class="pre">4])</span>
<span class="pre">-></span> <span class="pre">[1,</span> <span
class="pre">2,</span> <span class="pre">3,</span> <span
class="pre">4]</span></code></p></td>
</tr>
<tr class="row-even"><td><p>array_repeat(element, count)</p></td>
diff --git a/user-guide/sql/scalar_functions.html
b/user-guide/sql/scalar_functions.html
index 813ea6fb82..20931a339c 100644
--- a/user-guide/sql/scalar_functions.html
+++ b/user-guide/sql/scalar_functions.html
@@ -7647,22 +7647,22 @@ an error will be returned.</p></li>
</section>
<section id="array-prepend">
<h3><code class="docutils literal notranslate"><span
class="pre">array_prepend</span></code><a class="headerlink"
href="#array-prepend" title="Link to this heading">¶</a></h3>
-<p>Appends an element to the end of an array.</p>
-<div class="highlight-default notranslate"><div
class="highlight"><pre><span></span><span class="n">array_append</span><span
class="p">(</span><span class="n">array</span><span class="p">,</span> <span
class="n">element</span><span class="p">)</span>
+<p>Prepends an element to the beginning of an array.</p>
+<div class="highlight-default notranslate"><div
class="highlight"><pre><span></span><span class="n">array_prepend</span><span
class="p">(</span><span class="n">element</span><span class="p">,</span> <span
class="n">array</span><span class="p">)</span>
</pre></div>
</div>
<section id="id211">
<h4>Arguments<a class="headerlink" href="#id211" title="Link to this
heading">¶</a></h4>
<ul class="simple">
-<li><p><strong>array</strong>: Array expression. Can be a constant, column, or
function, and any combination of array operators.</p></li>
<li><p><strong>element</strong>: Element to append to the array.</p></li>
+<li><p><strong>array</strong>: Array expression. Can be a constant, column, or
function, and any combination of array operators.</p></li>
</ul>
</section>
<section id="id212">
<h4>Example<a class="headerlink" href="#id212" title="Link to this
heading">¶</a></h4>
-<div class="highlight-sql notranslate"><div
class="highlight"><pre><span></span><span class="o">></span><span class="w">
</span><span class="k">select</span><span class="w"> </span><span
class="n">array_append</span><span class="p">([</span><span
class="mi">1</span><span class="p">,</span><span class="w"> </span><span
class="mi">2</span><span class="p">,</span><span class="w"> </span><span
class="mi">3</span><span class="p">],</span><span class="w"> </span><span
class="mi">4</span><sp [...]
+<div class="highlight-sql notranslate"><div
class="highlight"><pre><span></span><span class="o">></span><span class="w">
</span><span class="k">select</span><span class="w"> </span><span
class="n">array_prepend</span><span class="p">(</span><span
class="mi">1</span><span class="p">,</span><span class="w"> </span><span
class="p">[</span><span class="mi">2</span><span class="p">,</span><span
class="w"> </span><span class="mi">3</span><span class="p">,</span><span
class="w"> </span><span [...]
<span class="o">+</span><span
class="c1">--------------------------------------+</span>
-<span class="o">|</span><span class="w"> </span><span
class="n">array_append</span><span class="p">(</span><span
class="n">List</span><span class="p">([</span><span class="mi">1</span><span
class="p">,</span><span class="mi">2</span><span class="p">,</span><span
class="mi">3</span><span class="p">]),</span><span class="n">Int64</span><span
class="p">(</span><span class="mi">4</span><span class="p">))</span><span
class="w"> </span><span class="o">|</span>
+<span class="o">|</span><span class="w"> </span><span
class="n">array_prepend</span><span class="p">(</span><span
class="n">Int64</span><span class="p">(</span><span class="mi">1</span><span
class="p">),</span><span class="w"> </span><span class="n">List</span><span
class="p">([</span><span class="mi">2</span><span class="p">,</span><span
class="mi">3</span><span class="p">,</span><span class="mi">4</span><span
class="p">]))</span><span class="w"> </span><span class="o">|</span>
<span class="o">+</span><span
class="c1">--------------------------------------+</span>
<span class="o">|</span><span class="w"> </span><span class="p">[</span><span
class="mi">1</span><span class="p">,</span><span class="w"> </span><span
class="mi">2</span><span class="p">,</span><span class="w"> </span><span
class="mi">3</span><span class="p">,</span><span class="w"> </span><span
class="mi">4</span><span class="p">]</span><span class="w">
</span><span class="o">|</span>
<span class="o">+</span><span
class="c1">--------------------------------------+</span>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]