You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/12/13 13:57:19 UTC
[GitHub] [arrow-datafusion] Ted-Jiang opened a new issue, #4603: [window function] support min max with self define sliding window.
Ted-Jiang opened a new issue, #4603:
URL: https://github.com/apache/arrow-datafusion/issues/4603
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*)
Now run
```
SELECT s_suppkey, s_nationkey, s_acctbal, (max(s_acctbal) over (
ORDER BY s_acctbal DESC ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING)) wr
FROM supplier
limit 10;
ArrowError(ExternalError(Internal("Retract should be implemented for aggregate functions when used with custom window frame queries")))
```
Got error because of `min`, `max` accumulator not support `retract_batch`
https://github.com/alamb/arrow-datafusion/blob/394c5eebf0cfb080698485bd32a8d2fb2230fb80/datafusion/expr/src/accumulator.rs#L61
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
--
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on issue #4603: [window function] support min max with self define sliding window.
Posted by GitBox <gi...@apache.org>.
alamb commented on issue #4603:
URL: https://github.com/apache/arrow-datafusion/issues/4603#issuecomment-1349647333
cc @metesynnada @retikulum
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb closed issue #4603: [window function] support min max with self define sliding window.
Posted by GitBox <gi...@apache.org>.
alamb closed issue #4603: [window function] support min max with self define sliding window.
URL: https://github.com/apache/arrow-datafusion/issues/4603
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] metesynnada commented on issue #4603: [window function] support min max with self define sliding window.
Posted by GitBox <gi...@apache.org>.
metesynnada commented on issue #4603:
URL: https://github.com/apache/arrow-datafusion/issues/4603#issuecomment-1350488338
cc @mustafasrepo
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org