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 29b0cdadcb Publish built docs triggered by
ccf395f40c9cf4e59c3c8fbd828a164bfebc3024
29b0cdadcb is described below
commit 29b0cdadcb75934a258d9506881111ddcc20ca20
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jun 3 18:47:18 2024 +0000
Publish built docs triggered by ccf395f40c9cf4e59c3c8fbd828a164bfebc3024
---
.../aggregate_function.rs | 25 +++-------------------
_sources/user-guide/example-usage.md.txt | 2 +-
user-guide/example-usage.html | 2 +-
3 files changed, 5 insertions(+), 24 deletions(-)
diff --git a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
index 0a7607498c..fb5a8db550 100644
--- a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
+++ b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
@@ -43,16 +43,10 @@ pub enum AggregateFunction {
Max,
/// Average
Avg,
- /// Median
- Median,
/// Approximate distinct function
ApproxDistinct,
/// Aggregation into an array
ArrayAgg,
- /// First value in a group according to some ordering
- FirstValue,
- /// Last value in a group according to some ordering
- LastValue,
/// N'th value in a group according to some ordering
NthValue,
/// Variance (Sample)
@@ -114,11 +108,8 @@ impl AggregateFunction {
Min => "MIN",
Max => "MAX",
Avg => "AVG",
- Median => "MEDIAN",
ApproxDistinct => "APPROX_DISTINCT",
ArrayAgg => "ARRAY_AGG",
- FirstValue => "FIRST_VALUE",
- LastValue => "LAST_VALUE",
NthValue => "NTH_VALUE",
Variance => "VAR",
VariancePop => "VAR_POP",
@@ -168,12 +159,9 @@ impl FromStr for AggregateFunction {
"count" => AggregateFunction::Count,
"max" => AggregateFunction::Max,
"mean" => AggregateFunction::Avg,
- "median" => AggregateFunction::Median,
"min" => AggregateFunction::Min,
"sum" => AggregateFunction::Sum,
"array_agg" => AggregateFunction::ArrayAgg,
- "first_value" => AggregateFunction::FirstValue,
- "last_value" => AggregateFunction::LastValue,
"nth_value" => AggregateFunction::NthValue,
"string_agg" => AggregateFunction::StringAgg,
// statistical
@@ -275,13 +263,9 @@ impl AggregateFunction {
AggregateFunction::ApproxPercentileContWithWeight => {
Ok(coerced_data_types[0].clone())
}
- AggregateFunction::ApproxMedian | AggregateFunction::Median => {
- Ok(coerced_data_types[0].clone())
- }
+ AggregateFunction::ApproxMedian =>
Ok(coerced_data_types[0].clone()),
AggregateFunction::Grouping => Ok(DataType::Int32),
- AggregateFunction::FirstValue
- | AggregateFunction::LastValue
- | AggregateFunction::NthValue => Ok(coerced_data_types[0].clone()),
+ AggregateFunction::NthValue => Ok(coerced_data_types[0].clone()),
AggregateFunction::StringAgg => Ok(DataType::LargeUtf8),
}
}
@@ -335,10 +319,7 @@ impl AggregateFunction {
| AggregateFunction::VariancePop
| AggregateFunction::Stddev
| AggregateFunction::StddevPop
- | AggregateFunction::Median
- | AggregateFunction::ApproxMedian
- | AggregateFunction::FirstValue
- | AggregateFunction::LastValue => {
+ | AggregateFunction::ApproxMedian => {
Signature::uniform(1, NUMERICS.to_vec(), Volatility::Immutable)
}
AggregateFunction::NthValue => Signature::any(2,
Volatility::Immutable),
diff --git a/_sources/user-guide/example-usage.md.txt
b/_sources/user-guide/example-usage.md.txt
index ae45c98d74..71a614313e 100644
--- a/_sources/user-guide/example-usage.md.txt
+++ b/_sources/user-guide/example-usage.md.txt
@@ -30,7 +30,7 @@ crates.io] page. Add the dependency to your `Cargo.toml` file:
```toml
datafusion = "latest_version"
-tokio = "1.0"
+tokio = { version = "1.0", features = ["rt-multi-thread"] }
```
## Add latest non published DataFusion dependency
diff --git a/user-guide/example-usage.html b/user-guide/example-usage.html
index f0437ddf91..36a1cee377 100644
--- a/user-guide/example-usage.html
+++ b/user-guide/example-usage.html
@@ -583,7 +583,7 @@
<p>Find latest available Datafusion version on <a class="reference external"
href="https://crates.io/crates/datafusion">DataFusion’s
crates.io</a> page. Add the dependency to your <code class="docutils literal
notranslate"><span class="pre">Cargo.toml</span></code> file:</p>
<div class="highlight-toml notranslate"><div
class="highlight"><pre><span></span><span class="n">datafusion</span><span
class="w"> </span><span class="o">=</span><span class="w"> </span><span
class="s2">"latest_version"</span>
-<span class="n">tokio</span><span class="w"> </span><span
class="o">=</span><span class="w"> </span><span
class="s2">"1.0"</span>
+<span class="n">tokio</span><span class="w"> </span><span
class="o">=</span><span class="w"> </span><span class="p">{</span><span
class="w"> </span><span class="n">version</span><span class="w"> </span><span
class="p">=</span><span class="w"> </span><span
class="s2">"1.0"</span><span class="p">,</span><span class="w">
</span><span class="n">features</span><span class="w"> </span><span
class="p">=</span><span class="w"> </span><span class="p">[</span><span
class="s2">"rt-mu [...]
</pre></div>
</div>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]