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

Feat: scaling approximate aggregate values #21

Closed
taewhi opened this issue Aug 3, 2022 · 0 comments · Fixed by #22
Closed

Feat: scaling approximate aggregate values #21

taewhi opened this issue Aug 3, 2022 · 0 comments · Fixed by #22
Assignees

Comments

@taewhi
Copy link
Member

taewhi commented Aug 3, 2022

For AVG function, we do not have to scale the result of approximate aggregation
This is because the avg result is not affected even if the number of input rows is changed.

However, the approximate aggregate values have to be scaled up for other functions like SUM and COUNT.
We need to multiply the ratio | original table | / | synopsis table | to the approximate results.

@taewhi taewhi self-assigned this Aug 4, 2022
@taewhi taewhi linked a pull request Aug 4, 2022 that will close this issue
@taewhi taewhi closed this as completed in #22 Aug 4, 2022
taewhi added a commit that referenced this issue Aug 4, 2022
[Issue #21] Feat: scaling approximate aggregate values
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 a pull request may close this issue.

1 participant