kazuyukitanimura commented on code in PR #7400:
URL: https://github.com/apache/arrow-datafusion/pull/7400#discussion_r1326500935
##########
datafusion/physical-expr/src/aggregate/first_last.rs:
##########
@@ -417,7 +426,9 @@ impl Accumulator for LastValueAccumulator {
fn state(&self) -> Result<Vec<ScalarValue>> {
let mut result = vec![self.last.clone()];
result.extend(self.orderings.clone());
- result.push(ScalarValue::Boolean(Some(self.is_set)));
+ if !self.is_merge_called {
+ result.push(ScalarValue::Boolean(Some(self.is_set)));
+ }
Review Comment:
Addressed here
https://github.com/apache/arrow-datafusion/pull/7400#discussion_r1324934988
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]