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

Relax tolerance in UDDSketch merge assertions #441

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

rtwalker
Copy link
Contributor

@rtwalker rtwalker commented Jun 6, 2022

Fixes #396 by increasing the tolerance in our comparison of the calculated initial error parameters for two UDDSketches being merged

@rtwalker rtwalker requested review from WireBaron and epgts June 6, 2022 17:32
@rtwalker
Copy link
Contributor Author

rtwalker commented Jun 6, 2022

Tests passed locally, but perhaps I should take this to indicate that I need to reduce the size of extension/src/test_data.rs?

ERROR: could not resize shared memory segment "/PostgreSQL.1297418116" to 133487040 bytes: No space left on device

@rtwalker rtwalker force-pushed the rw/uddsketch-failed-assert branch from 4b1c835 to 1ce4ae0 Compare June 7, 2022 19:26
crates/udd-sketch/src/lib.rs Outdated Show resolved Hide resolved
@rtwalker
Copy link
Contributor Author

rtwalker commented Jun 7, 2022

Dropped the test I'd added, since using the full dataset from #396 proved to be too large for CI. The test did pass locally, but I'm not sure getting a minimally reproducible example is a priority at the moment. Haven't been able to trigger the error (after 100+ queries) since this change.

f64::EPSILON was proving to be too tight of a tolerance for this
assertion. Since we are trying to recompute the initial error
parameter from the current number of compactions, we need to be more
forgiving with the floating point calcuations involved.
@rtwalker rtwalker force-pushed the rw/uddsketch-failed-assert branch from 1ce4ae0 to 6a82b0e Compare June 7, 2022 20:58
@rtwalker
Copy link
Contributor Author

rtwalker commented Jun 8, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 8, 2022

@bors bors bot merged commit f354211 into main Jun 8, 2022
@bors bors bot deleted the rw/uddsketch-failed-assert branch June 8, 2022 13:17
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.

UDDSketch assertion at crates/udd-sketch/src/lib.rs:290:9
2 participants