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 2851e389ad Publish built docs triggered by
d4228feca341cd707a3a26372cae71a94a93b4fd
2851e389ad is described below
commit 2851e389adcad00147fdd457c8afd22ecc0d3366
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jun 17 01:54:47 2024 +0000
Publish built docs triggered by d4228feca341cd707a3a26372cae71a94a93b4fd
---
.../aggregate_function.rs | 50 +---------------------
_sources/user-guide/cli/usage.md.txt | 2 +-
user-guide/cli/usage.html | 2 +-
3 files changed, 3 insertions(+), 51 deletions(-)
diff --git a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
index 81562bf124..441e8953df 100644
--- a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
+++ b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
@@ -21,7 +21,7 @@ use std::sync::Arc;
use std::{fmt, str::FromStr};
use crate::utils;
-use crate::{type_coercion::aggregates::*, Signature, TypeSignature,
Volatility};
+use crate::{type_coercion::aggregates::*, Signature, Volatility};
use arrow::datatypes::{DataType, Field};
use datafusion_common::{plan_datafusion_err, plan_err, DataFusionError,
Result};
@@ -45,10 +45,6 @@ pub enum AggregateFunction {
NthValue,
/// Correlation
Correlation,
- /// Approximate continuous percentile function
- ApproxPercentileCont,
- /// Approximate continuous percentile function with weight
- ApproxPercentileContWithWeight,
/// Grouping
Grouping,
/// Bit And
@@ -75,8 +71,6 @@ impl AggregateFunction {
ArrayAgg => "ARRAY_AGG",
NthValue => "NTH_VALUE",
Correlation => "CORR",
- ApproxPercentileCont => "APPROX_PERCENTILE_CONT",
- ApproxPercentileContWithWeight =>
"APPROX_PERCENTILE_CONT_WITH_WEIGHT",
Grouping => "GROUPING",
BitAnd => "BIT_AND",
BitOr => "BIT_OR",
@@ -113,11 +107,6 @@ impl FromStr for AggregateFunction {
"string_agg" => AggregateFunction::StringAgg,
// statistical
"corr" => AggregateFunction::Correlation,
- // approximate
- "approx_percentile_cont" =>
AggregateFunction::ApproxPercentileCont,
- "approx_percentile_cont_with_weight" => {
- AggregateFunction::ApproxPercentileContWithWeight
- }
// other
"grouping" => AggregateFunction::Grouping,
_ => {
@@ -170,10 +159,6 @@ impl AggregateFunction {
coerced_data_types[0].clone(),
true,
)))),
- AggregateFunction::ApproxPercentileCont =>
Ok(coerced_data_types[0].clone()),
- AggregateFunction::ApproxPercentileContWithWeight => {
- Ok(coerced_data_types[0].clone())
- }
AggregateFunction::Grouping => Ok(DataType::Int32),
AggregateFunction::NthValue => Ok(coerced_data_types[0].clone()),
AggregateFunction::StringAgg => Ok(DataType::LargeUtf8),
@@ -230,39 +215,6 @@ impl AggregateFunction {
AggregateFunction::Correlation => {
Signature::uniform(2, NUMERICS.to_vec(), Volatility::Immutable)
}
- AggregateFunction::ApproxPercentileCont => {
- let mut variants =
- Vec::with_capacity(NUMERICS.len() * (INTEGERS.len() + 1));
- // Accept any numeric value paired with a float64 percentile
- for num in NUMERICS {
- variants
- .push(TypeSignature::Exact(vec![num.clone(),
DataType::Float64]));
- // Additionally accept an integer number of centroids for
T-Digest
- for int in INTEGERS {
- variants.push(TypeSignature::Exact(vec![
- num.clone(),
- DataType::Float64,
- int.clone(),
- ]))
- }
- }
-
- Signature::one_of(variants, Volatility::Immutable)
- }
- AggregateFunction::ApproxPercentileContWithWeight =>
Signature::one_of(
- // Accept any numeric value paired with a float64 percentile
- NUMERICS
- .iter()
- .map(|t| {
- TypeSignature::Exact(vec![
- t.clone(),
- t.clone(),
- DataType::Float64,
- ])
- })
- .collect(),
- Volatility::Immutable,
- ),
AggregateFunction::StringAgg => {
Signature::uniform(2, STRINGS.to_vec(), Volatility::Immutable)
}
diff --git a/_sources/user-guide/cli/usage.md.txt
b/_sources/user-guide/cli/usage.md.txt
index 617b462875..6a620fc692 100644
--- a/_sources/user-guide/cli/usage.md.txt
+++ b/_sources/user-guide/cli/usage.md.txt
@@ -52,7 +52,7 @@ OPTIONS:
--maxrows <MAXROWS>
The max number of rows to display for 'Table' format
- [default: 40] [possible values: numbers(0/10/...), inf(no limit)]
+ [possible values: numbers(0/10/...), inf(no limit)] [default: 40]
--mem-pool-type <MEM_POOL_TYPE>
Specify the memory pool type 'greedy' or 'fair', default to
'greedy'
diff --git a/user-guide/cli/usage.html b/user-guide/cli/usage.html
index 7ab4678c74..9fd42369ba 100644
--- a/user-guide/cli/usage.html
+++ b/user-guide/cli/usage.html
@@ -625,7 +625,7 @@ OPTIONS:
<span class="w"> </span>--maxrows<span class="w"> </span><MAXROWS>
<span class="w"> </span>The<span class="w"> </span>max<span
class="w"> </span>number<span class="w"> </span>of<span class="w">
</span>rows<span class="w"> </span>to<span class="w"> </span>display<span
class="w"> </span><span class="k">for</span><span class="w"> </span><span
class="s1">'Table'</span><span class="w"> </span>format
-<span class="w"> </span><span class="o">[</span>default:<span
class="w"> </span><span class="m">40</span><span class="o">]</span><span
class="w"> </span><span class="o">[</span>possible<span class="w">
</span>values:<span class="w"> </span>numbers<span class="o">(</span><span
class="m">0</span>/10/...<span class="o">)</span>,<span class="w">
</span>inf<span class="o">(</span>no<span class="w"> </span>limit<span
class="o">)]</span>
+<span class="w"> </span><span class="o">[</span>possible<span
class="w"> </span>values:<span class="w"> </span>numbers<span
class="o">(</span><span class="m">0</span>/10/...<span class="o">)</span>,<span
class="w"> </span>inf<span class="o">(</span>no<span class="w">
</span>limit<span class="o">)]</span><span class="w"> </span><span
class="o">[</span>default:<span class="w"> </span><span
class="m">40</span><span class="o">]</span>
<span class="w"> </span>--mem-pool-type<span class="w">
</span><MEM_POOL_TYPE>
<span class="w"> </span>Specify<span class="w"> </span>the<span
class="w"> </span>memory<span class="w"> </span>pool<span class="w">
</span><span class="nb">type</span><span class="w"> </span><span
class="s1">'greedy'</span><span class="w"> </span>or<span class="w">
</span><span class="s1">'fair'</span>,<span class="w">
</span>default<span class="w"> </span>to<span class="w"> </span><span
class="s1">'greedy'</span>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]