Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

quickhouse
Copy link

@quickhouse quickhouse commented Aug 4, 2022

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
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