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 fd270844ff Publish built docs triggered by 
49aee89796f7a61ba9e4705cc6023a577ea93659
fd270844ff is described below

commit fd270844ff8ab25d13d42467ae46fbb5a5af17b4
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jun 25 17:12:10 2024 +0000

    Publish built docs triggered by 49aee89796f7a61ba9e4705cc6023a577ea93659
---
 .../aggregate_function.rs                          | 33 ----------------------
 _sources/index.rst.txt                             |  4 +--
 index.html                                         |  4 +--
 searchindex.js                                     |  2 +-
 4 files changed, 5 insertions(+), 38 deletions(-)

diff --git a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs 
b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
index 967ccc0b08..2997aef58e 100644
--- a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
+++ b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
@@ -37,14 +37,10 @@ pub enum AggregateFunction {
     Min,
     /// Maximum
     Max,
-    /// Average
-    Avg,
     /// Aggregation into an array
     ArrayAgg,
     /// N'th value in a group according to some ordering
     NthValue,
-    /// Correlation
-    Correlation,
     /// Grouping
     Grouping,
 }
@@ -55,10 +51,8 @@ impl AggregateFunction {
         match self {
             Min => "MIN",
             Max => "MAX",
-            Avg => "AVG",
             ArrayAgg => "ARRAY_AGG",
             NthValue => "NTH_VALUE",
-            Correlation => "CORR",
             Grouping => "GROUPING",
         }
     }
@@ -75,14 +69,10 @@ impl FromStr for AggregateFunction {
     fn from_str(name: &str) -> Result<AggregateFunction> {
         Ok(match name {
             // general
-            "avg" => AggregateFunction::Avg,
             "max" => AggregateFunction::Max,
-            "mean" => AggregateFunction::Avg,
             "min" => AggregateFunction::Min,
             "array_agg" => AggregateFunction::ArrayAgg,
             "nth_value" => AggregateFunction::NthValue,
-            // statistical
-            "corr" => AggregateFunction::Correlation,
             // other
             "grouping" => AggregateFunction::Grouping,
             _ => {
@@ -120,10 +110,6 @@ impl AggregateFunction {
                 // The coerced_data_types is same with input_types.
                 Ok(coerced_data_types[0].clone())
             }
-            AggregateFunction::Correlation => {
-                correlation_return_type(&coerced_data_types[0])
-            }
-            AggregateFunction::Avg => avg_return_type(&coerced_data_types[0]),
             AggregateFunction::ArrayAgg => 
Ok(DataType::List(Arc::new(Field::new(
                 "item",
                 coerced_data_types[0].clone(),
@@ -135,19 +121,6 @@ impl AggregateFunction {
     }
 }
 
-/// Returns the internal sum datatype of the avg aggregate function.
-pub fn sum_type_of_avg(input_expr_types: &[DataType]) -> Result<DataType> {
-    // Note that this function *must* return the same type that the respective 
physical expression returns
-    // or the execution panics.
-    let fun = AggregateFunction::Avg;
-    let coerced_data_types = crate::type_coercion::aggregates::coerce_types(
-        &fun,
-        input_expr_types,
-        &fun.signature(),
-    )?;
-    avg_sum_type(&coerced_data_types[0])
-}
-
 impl AggregateFunction {
     /// the signatures supported by the function `fun`.
     pub fn signature(&self) -> Signature {
@@ -168,13 +141,7 @@ impl AggregateFunction {
                     .collect::<Vec<_>>();
                 Signature::uniform(1, valid, Volatility::Immutable)
             }
-            AggregateFunction::Avg => {
-                Signature::uniform(1, NUMERICS.to_vec(), Volatility::Immutable)
-            }
             AggregateFunction::NthValue => Signature::any(2, 
Volatility::Immutable),
-            AggregateFunction::Correlation => {
-                Signature::uniform(2, NUMERICS.to_vec(), Volatility::Immutable)
-            }
         }
     }
 }
diff --git a/_sources/index.rst.txt b/_sources/index.rst.txt
index 8500c70623..8677b63c91 100644
--- a/_sources/index.rst.txt
+++ b/_sources/index.rst.txt
@@ -41,9 +41,9 @@ DataFusion offers SQL and Dataframe APIs, excellent
 CSV, Parquet, JSON, and Avro, extensive customization, and a great
 community.
 
-The `example usage`_ section in the user guide and the `datafusion-examples`_ 
code in the crate contain information on using DataFusion.
+To get started with examples, see the `example usage`_ section of the user 
guide and the `datafusion-examples`_ directory.
 
-Please see the `developer’s guide`_ for contributing and `communication`_ for 
getting in touch with us.
+See the `developer’s guide`_ for contributing and `communication`_ for getting 
in touch with us.
 
 .. _example usage: user-guide/example-usage.html
 .. _datafusion-examples: 
https://github.com/apache/datafusion/tree/main/datafusion-examples
diff --git a/index.html b/index.html
index 974e450389..74618c5951 100644
--- a/index.html
+++ b/index.html
@@ -505,8 +505,8 @@ in-memory format.</p>
 <a class="reference external" 
href="https://benchmark.clickhouse.com";>performance</a>, built-in support for
 CSV, Parquet, JSON, and Avro, extensive customization, and a great
 community.</p>
-<p>The <a class="reference external" 
href="user-guide/example-usage.html">example usage</a> section in the user 
guide and the <a class="reference external" 
href="https://github.com/apache/datafusion/tree/main/datafusion-examples";>datafusion-examples</a>
 code in the crate contain information on using DataFusion.</p>
-<p>Please see the <a class="reference external" 
href="contributor-guide/index.html#developer-s-guide">developer’s guide</a> for 
contributing and <a class="reference external" 
href="contributor-guide/communication.html">communication</a> for getting in 
touch with us.</p>
+<p>To get started with examples, see the <a class="reference external" 
href="user-guide/example-usage.html">example usage</a> section of the user 
guide and the <a class="reference external" 
href="https://github.com/apache/datafusion/tree/main/datafusion-examples";>datafusion-examples</a>
 directory.</p>
+<p>See the <a class="reference external" 
href="contributor-guide/index.html#developer-s-guide">developer’s guide</a> for 
contributing and <a class="reference external" 
href="contributor-guide/communication.html">communication</a> for getting in 
touch with us.</p>
 <div class="toctree-wrapper compound" id="toc-asf-links">
 <p aria-level="2" class="caption" role="heading"><span 
class="caption-text">ASF Links</span></p>
 <ul>
diff --git a/searchindex.js b/searchindex.js
index 93a420ed41..7f8bfe5fb4 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles": {"!=": [[43, "op-neq"]], "!~": [[43, 
"op-re-not-match"]], "!~*": [[43, "op-re-not-match-i"]], "!~~": [[43, "id18"]], 
"!~~*": [[43, "id19"]], "#": [[43, "op-bit-xor"]], "%": [[43, "op-modulo"]], 
"&": [[43, "op-bit-and"]], "(relation, name) tuples in logical fields and 
logical columns are unique": [[10, 
"relation-name-tuples-in-logical-fields-and-logical-columns-are-unique"]], "*": 
[[43, "op-multiply"]], "+": [[43, "op-plus"]], "-": [[43, "op-minus"]], "/": [[ 
[...]
\ No newline at end of file
+Search.setIndex({"alltitles": {"!=": [[43, "op-neq"]], "!~": [[43, 
"op-re-not-match"]], "!~*": [[43, "op-re-not-match-i"]], "!~~": [[43, "id18"]], 
"!~~*": [[43, "id19"]], "#": [[43, "op-bit-xor"]], "%": [[43, "op-modulo"]], 
"&": [[43, "op-bit-and"]], "(relation, name) tuples in logical fields and 
logical columns are unique": [[10, 
"relation-name-tuples-in-logical-fields-and-logical-columns-are-unique"]], "*": 
[[43, "op-multiply"]], "+": [[43, "op-plus"]], "-": [[43, "op-minus"]], "/": [[ 
[...]
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to