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 4d1e9b0fac Publish built docs triggered by
886e8accdaa85d7b3dca45340b955437786a9b6a
4d1e9b0fac is described below
commit 4d1e9b0facc303f0a08d06739260b60632b7a3aa
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jul 24 23:55:27 2024 +0000
Publish built docs triggered by 886e8accdaa85d7b3dca45340b955437786a9b6a
---
.../aggregate_function.rs | 16 ++--------------
_sources/user-guide/expressions.md.txt | 2 +-
searchindex.js | 2 +-
user-guide/expressions.html | 2 +-
4 files changed, 5 insertions(+), 17 deletions(-)
diff --git a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
index 39b3b4ed3b..4037e3c5db 100644
--- a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
+++ b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
@@ -17,13 +17,12 @@
//! Aggregate function module contains all built-in aggregate functions
definitions
-use std::sync::Arc;
use std::{fmt, str::FromStr};
use crate::utils;
use crate::{type_coercion::aggregates::*, Signature, Volatility};
-use arrow::datatypes::{DataType, Field};
+use arrow::datatypes::DataType;
use datafusion_common::{plan_datafusion_err, plan_err, DataFusionError,
Result};
use strum_macros::EnumIter;
@@ -37,8 +36,6 @@ pub enum AggregateFunction {
Min,
/// Maximum
Max,
- /// Aggregation into an array
- ArrayAgg,
}
impl AggregateFunction {
@@ -47,7 +44,6 @@ impl AggregateFunction {
match self {
Min => "MIN",
Max => "MAX",
- ArrayAgg => "ARRAY_AGG",
}
}
}
@@ -65,7 +61,6 @@ impl FromStr for AggregateFunction {
// general
"max" => AggregateFunction::Max,
"min" => AggregateFunction::Min,
- "array_agg" => AggregateFunction::ArrayAgg,
_ => {
return plan_err!("There is no built-in function named {name}");
}
@@ -80,7 +75,7 @@ impl AggregateFunction {
pub fn return_type(
&self,
input_expr_types: &[DataType],
- input_expr_nullable: &[bool],
+ _input_expr_nullable: &[bool],
) -> Result<DataType> {
// Note that this function *must* return the same type that the
respective physical expression returns
// or the execution panics.
@@ -105,11 +100,6 @@ impl AggregateFunction {
// The coerced_data_types is same with input_types.
Ok(coerced_data_types[0].clone())
}
- AggregateFunction::ArrayAgg =>
Ok(DataType::List(Arc::new(Field::new(
- "item",
- coerced_data_types[0].clone(),
- input_expr_nullable[0],
- )))),
}
}
@@ -118,7 +108,6 @@ impl AggregateFunction {
pub fn nullable(&self) -> Result<bool> {
match self {
AggregateFunction::Max | AggregateFunction::Min => Ok(true),
- AggregateFunction::ArrayAgg => Ok(true),
}
}
}
@@ -128,7 +117,6 @@ impl AggregateFunction {
pub fn signature(&self) -> Signature {
// note: the physical expression must accept the type returned by this
function or the execution panics.
match self {
- AggregateFunction::ArrayAgg => Signature::any(1,
Volatility::Immutable),
AggregateFunction::Min | AggregateFunction::Max => {
let valid = STRINGS
.iter()
diff --git a/_sources/user-guide/expressions.md.txt
b/_sources/user-guide/expressions.md.txt
index 6e693a0e70..60036e440f 100644
--- a/_sources/user-guide/expressions.md.txt
+++ b/_sources/user-guide/expressions.md.txt
@@ -308,7 +308,7 @@ select log(-1), log(0), sqrt(-1);
## Aggregate Function Builder
-You can also use the `AggregateExt` trait to more easily build Aggregate
arguments `Expr`.
+You can also use the `ExprFunctionExt` trait to more easily build Aggregate
arguments `Expr`.
See `datafusion-examples/examples/expr_api.rs` for example usage.
diff --git a/searchindex.js b/searchindex.js
index e28e8bfa30..c37c9781aa 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles": {"!=": [[44, "op-neq"]], "!~": [[44,
"op-re-not-match"]], "!~*": [[44, "op-re-not-match-i"]], "!~~": [[44, "id18"]],
"!~~*": [[44, "id19"]], "#": [[44, "op-bit-xor"]], "%": [[44, "op-modulo"]],
"&": [[44, "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"]], "*":
[[44, "op-multiply"]], "+": [[44, "op-plus"]], "-": [[44, "op-minus"]], "/":
[[4 [...]
\ No newline at end of file
+Search.setIndex({"alltitles": {"!=": [[44, "op-neq"]], "!~": [[44,
"op-re-not-match"]], "!~*": [[44, "op-re-not-match-i"]], "!~~": [[44, "id18"]],
"!~~*": [[44, "id19"]], "#": [[44, "op-bit-xor"]], "%": [[44, "op-modulo"]],
"&": [[44, "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"]], "*":
[[44, "op-multiply"]], "+": [[44, "op-plus"]], "-": [[44, "op-minus"]], "/":
[[4 [...]
\ No newline at end of file
diff --git a/user-guide/expressions.html b/user-guide/expressions.html
index cff396e542..b8c0b55898 100644
--- a/user-guide/expressions.html
+++ b/user-guide/expressions.html
@@ -1326,7 +1326,7 @@ but these operators always return a <code class="docutils
literal notranslate"><
</section>
<section id="aggregate-function-builder">
<h2>Aggregate Function Builder<a class="headerlink"
href="#aggregate-function-builder" title="Link to this heading">ΒΆ</a></h2>
-<p>You can also use the <code class="docutils literal notranslate"><span
class="pre">AggregateExt</span></code> trait to more easily build Aggregate
arguments <code class="docutils literal notranslate"><span
class="pre">Expr</span></code>.</p>
+<p>You can also use the <code class="docutils literal notranslate"><span
class="pre">ExprFunctionExt</span></code> trait to more easily build Aggregate
arguments <code class="docutils literal notranslate"><span
class="pre">Expr</span></code>.</p>
<p>See <code class="docutils literal notranslate"><span
class="pre">datafusion-examples/examples/expr_api.rs</span></code> for example
usage.</p>
<table class="table">
<thead>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]