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(eap-api): Use signs in count, average, and sum calculations #6613

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

davidtsuk
Copy link
Contributor

@davidtsuk davidtsuk requested review from a team as code owners December 4, 2024 19:36
@kylemumma
Copy link
Member

What is the motivation behind this PR?

@davidtsuk
Copy link
Contributor Author

What is the motivation behind this PR?

We are using a ReplacingMergeTree which stores a sign representing whether a row was added or deleted. In order to compute counts, sums, and averages correctly we need to account for the sign in the calculation.

@onkar
Copy link
Member

onkar commented Dec 6, 2024

@davidtsuk should we add unit tests covering the sign representation?

@davidtsuk
Copy link
Contributor Author

@davidtsuk should we add unit tests covering the sign representation?

We aren't actually using negative signs yet, so we can't add any tests yet for that. Since the existing tests pass, I think it's okay to wait until we start using negative signs.

@davidtsuk davidtsuk merged commit a687521 into master Dec 6, 2024
30 of 31 checks passed
@davidtsuk davidtsuk deleted the david/feat/sign-for-count-and-avg branch December 6, 2024 19:32
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.

4 participants