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

Stabilizing integral and interpolated integral #724

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

thatzopoulos
Copy link
Contributor

Fixes #719

Copy link
Contributor

@WireBaron WireBaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we also need an arrow accessor for the interpolated_integral. You can look at how I did this in #716 if you have any questions.

docs/test_caggs.md Outdated Show resolved Hide resolved
tests/update/time-weighted-average.md Outdated Show resolved Hide resolved
@thatzopoulos thatzopoulos force-pushed the th/integral-stabilization branch 2 times, most recently from a6b9467 to c280c50 Compare March 3, 2023 21:49
None
};

// Convert from num of milliseconds to DurationUnit and then to string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section of code is a workaround for the DurationUnit enum not working with the flat_serialize macro.

Copy link
Contributor

@WireBaron WireBaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just address the last few comments and this is ready to merge.

extension/src/time_weighted_average/accessors.rs Outdated Show resolved Hide resolved
extension/src/time_weighted_average/accessors.rs Outdated Show resolved Hide resolved
start : i64,
interval : i64,
prev : TimeWeightSummaryData,
pad : [u8;3],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uff, bit late to do anything about this, but seems like we should have made our pg_type objects aligned so they could be composed without needing padding.

@thatzopoulos thatzopoulos force-pushed the th/integral-stabilization branch 2 times, most recently from 3eecfa5 to 85addbe Compare March 6, 2023 21:07
@thatzopoulos
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 6, 2023

@bors bors bot merged commit f518404 into main Mar 6, 2023
@bors bors bot deleted the th/integral-stabilization branch March 6, 2023 21:59
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.

Stabilize Integral and interpolated_integral
3 participants