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 2b795c6e69 Publish built docs triggered by 
4d1665550fca8fff627aeeb0ff54f64344a71a3d
2b795c6e69 is described below

commit 2b795c6e6996621167c9acc74c0a35ac73fe620a
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jun 27 19:17:31 2024 +0000

    Publish built docs triggered by 4d1665550fca8fff627aeeb0ff54f64344a71a3d
---
 .../aggregate_function.rs                             | 19 +++++++++++++++++--
 _sources/user-guide/cli/installation.md.txt           |  3 +--
 searchindex.js                                        |  2 +-
 user-guide/cli/installation.html                      |  3 +--
 4 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs 
b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
index 2997aef58e..b17e4294a1 100644
--- a/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
+++ b/_downloads/f9718f9b04809de030b1693c73858f19/aggregate_function.rs
@@ -86,7 +86,11 @@ impl AggregateFunction {
     /// Returns the datatype of the aggregate function given its argument types
     ///
     /// This is used to get the returned data type for aggregate expr.
-    pub fn return_type(&self, input_expr_types: &[DataType]) -> 
Result<DataType> {
+    pub fn return_type(
+        &self,
+        input_expr_types: &[DataType],
+        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.
 
@@ -113,12 +117,23 @@ impl AggregateFunction {
             AggregateFunction::ArrayAgg => 
Ok(DataType::List(Arc::new(Field::new(
                 "item",
                 coerced_data_types[0].clone(),
-                true,
+                input_expr_nullable[0],
             )))),
             AggregateFunction::Grouping => Ok(DataType::Int32),
             AggregateFunction::NthValue => Ok(coerced_data_types[0].clone()),
         }
     }
+
+    /// Returns if the return type of the aggregate function is nullable given 
its argument
+    /// nullability
+    pub fn nullable(&self) -> Result<bool> {
+        match self {
+            AggregateFunction::Max | AggregateFunction::Min => Ok(true),
+            AggregateFunction::ArrayAgg => Ok(false),
+            AggregateFunction::Grouping => Ok(true),
+            AggregateFunction::NthValue => Ok(true),
+        }
+    }
 }
 
 impl AggregateFunction {
diff --git a/_sources/user-guide/cli/installation.md.txt 
b/_sources/user-guide/cli/installation.md.txt
index 3a71240783..f5114cafe5 100644
--- a/_sources/user-guide/cli/installation.md.txt
+++ b/_sources/user-guide/cli/installation.md.txt
@@ -56,8 +56,7 @@ this to work.
 
 ```bash
 git clone https://github.com/apache/datafusion
-cd arrow-datafusion
-git checkout 12.0.0
+cd datafusion
 docker build -f datafusion-cli/Dockerfile . --tag datafusion-cli
 docker run -it -v $(your_data_location):/data datafusion-cli
 ```
diff --git a/searchindex.js b/searchindex.js
index 7f8bfe5fb4..0bb9ddb2c7 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
diff --git a/user-guide/cli/installation.html b/user-guide/cli/installation.html
index bfccea09be..5f5763d0fb 100644
--- a/user-guide/cli/installation.html
+++ b/user-guide/cli/installation.html
@@ -561,8 +561,7 @@ instead.</p>
 that there is <code class="docutils literal notranslate"><span 
class="pre">.dockerignore</span></code> file in the root of the repository that 
may need to be deleted in order for
 this to work.</p>
 <div class="highlight-bash notranslate"><div 
class="highlight"><pre><span></span>git<span class="w"> </span>clone<span 
class="w"> </span>https://github.com/apache/datafusion
-<span class="nb">cd</span><span class="w"> </span>arrow-datafusion
-git<span class="w"> </span>checkout<span class="w"> </span><span 
class="m">12</span>.0.0
+<span class="nb">cd</span><span class="w"> </span>datafusion
 docker<span class="w"> </span>build<span class="w"> </span>-f<span class="w"> 
</span>datafusion-cli/Dockerfile<span class="w"> </span>.<span class="w"> 
</span>--tag<span class="w"> </span>datafusion-cli
 docker<span class="w"> </span>run<span class="w"> </span>-it<span class="w"> 
</span>-v<span class="w"> </span><span 
class="k">$(</span>your_data_location<span class="k">)</span>:/data<span 
class="w"> </span>datafusion-cli
 </pre></div>


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

Reply via email to