8000 Fixed point of origin for exponential decay window functions to the last value in window — backport of ClickHouse/ClickHouse#39593 by quickhouse · Pull Request #190 · Altinity/ClickHouse · GitHub
[go: up one dir, main page]

Skip to content

Fixed point of origin for exponential decay window functions to the last value in window — backport of ClickHouse/ClickHouse#39593 - #190

Merged
Enmk merged 2 commits into
Altinity:customizations/22.3from
quickhouse:backportfixexponentialdecaywindowfunctions
Aug 11, 2022
Merged

Enmk merged 2 commits into
Altinity:customizations/22.3from
quickhouse:backportfixexponentialdecaywindowfunctions

Conversation

@quickhouse
@quickhouse quickhouse commented Aug 4, 2022 •
Copy link
Copy Markdown

Changelog category (leave one):

  • Bug Fix (user-visible misbehaviour in official stable or prestable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixed point of origin for exponential decay window functions to the last value in window. Previously, decay was calculated by formula exp((t - curr_row_t) / decay_length), which is incorrect when right boundary of window is not CURRENT ROW. It was changed to: exp((t - last_row_t) / decay_length). There is no change in results for windows with ROWS BETWEEN (smth) AND CURRENT ROW.

Backport of ClickHouse#39593

@Enmk
Enmk merged commit 7c3e72f into Altinity:customizations/22.3 Aug 11, 2022
@Enmk Enmk mentioned this pull request Aug 16, 2022
@Enmk Enmk mentioned this pull request Sep 12, 2022
4 tasks done
Enmk pushed a commit that referenced this pull request Sep 17, 2022
…to the last value in window — backport of ClickHouse#39593

Fixed point of origin for exponential decay window functions to the last value in window.
Fixed tests on Debug build type.
@Enmk Enmk mentioned this pull request Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0